get_post_meta need the post ID

This commit is contained in:
Matthias Pfefferle 2022-12-27 16:58:49 +01:00
parent eea3f582d6
commit a548d1fe0f

View file

@ -71,7 +71,7 @@ class Post {
$post = $this->post;
if ( 'trash' === get_post_status( $post ) ) {
$permalink = \get_post_meta( $post, 'activitypub_canonical_url', true );
$permalink = \get_post_meta( $post->ID, 'activitypub_canonical_url', true );
} else {
$permalink = \get_permalink( $post );
}