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 ); + } } } }