get_post_meta need the post ID
This commit is contained in:
parent
eea3f582d6
commit
a548d1fe0f
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class Post {
|
||||||
$post = $this->post;
|
$post = $this->post;
|
||||||
|
|
||||||
if ( 'trash' === get_post_status( $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 {
|
} else {
|
||||||
$permalink = \get_permalink( $post );
|
$permalink = \get_permalink( $post );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue