From 2bb1de26de8043128426bdb003ab79c4ebfe4ae9 Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Mon, 24 Feb 2025 16:26:17 +0100 Subject: [PATCH] Fix replying to posts with a different permalink --- feed-parsers/class-feed-parser-activitypub.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/feed-parsers/class-feed-parser-activitypub.php b/feed-parsers/class-feed-parser-activitypub.php index e5413c27..be5cef7b 100644 --- a/feed-parsers/class-feed-parser-activitypub.php +++ b/feed-parsers/class-feed-parser-activitypub.php @@ -1722,6 +1722,9 @@ public function cache_url( $url ) { $post_id = reset( $new_posts ); } else { $post_id = Feed::url_to_postid( $url ); + if ( is_null( $post_id ) ) { + $post_id = Feed::url_to_postid( $item->permalink ); + } } } }