From 3e5130952559b507850c74f0659e68bb2d700d53 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 5 Feb 2022 16:22:21 +0000 Subject: [PATCH] Check for a filled "event-id" field --- src/Protocol/ActivityPub/Processor.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 948a3983bc..76f8cdb850 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -182,11 +182,8 @@ class Processor Item::update($item, ['uri' => $activity['id']]); if ($activity['object_type'] == 'as:Event') { - $posts = Post::select(['event-id', 'uid'], ['uri' => $activity['id']]); + $posts = Post::select(['event-id', 'uid'], ["`uri` = ? AND `event-id` > ?", $activity['id'], 0]); while ($post = DBA::fetch($posts)) { - if (empty($post['event-id'])) { - continue; - } self::updateEvent($post['event-id'], $activity); } } -- 2.39.5