aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-03 21:33:07 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-03 21:33:07 +0200
commitdc18440c18549a07b31c7506316e7a4bd40b9712 (patch)
treeed905c6494a8858d8ac264a141891524d8e631f5 /Zotlabs/Module/Display.php
parent1a0cf2666a757314edfb5f6f1ea40c5e1e8750ea (diff)
downloadvolse-hubzilla-dc18440c18549a07b31c7506316e7a4bd40b9712.tar.gz
volse-hubzilla-dc18440c18549a07b31c7506316e7a4bd40b9712.tar.bz2
volse-hubzilla-dc18440c18549a07b31c7506316e7a4bd40b9712.zip
introduce item_normal_update(). the differnce to item_normal() is that we do not query for item_deleted = 0 and therefor can find deleted likes which allows us to update our unlikes on the fly if static page update is enabled
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 66a09b983..2b2722421 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -185,6 +185,7 @@ class Display extends \Zotlabs\Web\Controller {
$observer_hash = get_observer_hash();
$item_normal = item_normal();
+ $item_normal_update = item_normal_update();
$sql_extra = public_permissions_sql($observer_hash);
@@ -251,7 +252,7 @@ class Display extends \Zotlabs\Web\Controller {
$r = q("SELECT item.parent AS item_id from item
WHERE uid = %d
and parent_mid = '%s'
- $item_normal
+ $item_normal_update
$simple_update
limit 1",
intval(local_channel()),
@@ -275,7 +276,7 @@ class Display extends \Zotlabs\Web\Controller {
and uid in ( " . stream_perms_api_uids(($observer_hash) ? (PERMS_NETWORK|PERMS_PUBLIC) : PERMS_PUBLIC) . " ))
OR uid = %d )
$sql_extra )
- $item_normal
+ $item_normal_update
$simple_update
limit 1",
dbesc($target_item['parent_mid']),