fix "bulk replace" issue

This commit is contained in:
Matthias Pfefferle 2023-04-24 09:49:06 +02:00
parent 77415ef510
commit 47dc2f72d1

View file

@ -227,7 +227,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->url, 'activitypub_canonical_url', true ); $permalink = \get_post_meta( $post->ID, 'activitypub_canonical_url', true );
} else { } else {
$permalink = \get_permalink( $post ); $permalink = \get_permalink( $post );
} }