mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
only reset obj cache if edited timestamp has changed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user