diff --git a/includes/model/class-post.php b/includes/model/class-post.php index 412de24..cd8f119 100644 --- a/includes/model/class-post.php +++ b/includes/model/class-post.php @@ -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 ); }