From aca5e273fe61de8f2f3fde478181abeb6cca0d7b Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Sun, 29 Jan 2023 20:23:51 -0700 Subject: [PATCH] update post meta canonical --- includes/model/class-comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/model/class-comment.php b/includes/model/class-comment.php index 1dbafed..3f4b7dc 100644 --- a/includes/model/class-comment.php +++ b/includes/model/class-comment.php @@ -126,7 +126,7 @@ class Comment { } } else { //parent is_post // Backwards compatibility - $pretty_permalink = \get_post_meta( $comment->comment_post_ID, '_activitypub_permalink_compat', true ); + $pretty_permalink = \get_post_meta( $comment->comment_post_ID, 'activitypub_canonical_url', true ); if ( $pretty_permalink ) { $in_reply_to = $pretty_permalink; } else { @@ -144,7 +144,7 @@ class Comment { public function generate_context() { $comment = $this->comment; // support pretty_permalinks - $pretty_permalink = \get_post_meta( $comment->comment_post_ID, '_activitypub_permalink_compat', true ); + $pretty_permalink = \get_post_meta( $comment->comment_post_ID, 'activitypub_canonical_url', true ); if ( $pretty_permalink ) { $context = $pretty_permalink; } else {