From 11c8b74993eb18804de6f85d638b9af33dbdbc09 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 27 Jan 2024 15:09:39 +1100 Subject: [PATCH] same change to prevent duplicate item_update on the activitypub side --- Code/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Lib/Activity.php b/Code/Lib/Activity.php index 0fc3f8a0c..4284901e0 100644 --- a/Code/Lib/Activity.php +++ b/Code/Lib/Activity.php @@ -4258,7 +4258,7 @@ class Activity intval($item['uid']) ); if ($r) { - if ($item['edited'] > $r[0]['edited'] || $item['approved'] !== $r[0]['approved']) { + if ($item['edited'] > $r[0]['edited']) { $item['id'] = $r[0]['id']; ObjCache::Set($item['mid'], $act->raw); $x = item_store_update($item, deliver: false);