- Prevented single item display update when "like" interactions were removed because the item wasn't "unseen"
$item = null;
+ $force = (bool)($_REQUEST['force'] ?? false);
+
if ($update) {
$item_id = $_REQUEST['item_id'];
$item = Item::selectFirst(['uid', 'parent', 'parent-uri'], ['id' => $item_id]);
}
// We need the editor here to be able to reshare an item.
- if ($is_owner) {
+ if ($is_owner && !$update) {
$x = [
'is_owner' => true,
'allow_location' => $a->user['allow_location'],
$unseen = false;
}
- if ($update && !$unseen) {
+ if ($update && !$unseen && !$force) {
return '';
}