diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 7dd0e7afa..712c02ddc 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3030,12 +3030,12 @@ class Activity { ); if ($r) { - // Only update the object cache if there is no owner/author mismatch. - if ($r[0]['owner_xchan'] === $item['owner_xchan'] && $r[0]['author_xchan'] === $item['author_xchan']) { - ObjCache::Set($item['mid'], $act->data); - } - if ($item['edited'] > $r[0]['edited']) { + // Only update the object cache if there is no owner/author mismatch. + if ($r[0]['owner_xchan'] === $item['owner_xchan'] && $r[0]['author_xchan'] === $item['author_xchan']) { + ObjCache::Set($item['mid'], $act->data); + } + $item['id'] = $r[0]['id']; $x = item_store_update($item, deliver: false); }