Skip to content

Commit a548d1f

Browse files
committed
get_post_meta need the post ID
1 parent eea3f58 commit a548d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/model/class-post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function generate_id() {
7171
$post = $this->post;
7272

7373
if ( 'trash' === get_post_status( $post ) ) {
74-
$permalink = \get_post_meta( $post, 'activitypub_canonical_url', true );
74+
$permalink = \get_post_meta( $post->ID, 'activitypub_canonical_url', true );
7575
} else {
7676
$permalink = \get_permalink( $post );
7777
}

0 commit comments

Comments
 (0)