aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Network.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/Network.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/Network.php')
-rw-r--r--Zotlabs/Module/Network.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index 82c997270..db90e235f 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -44,6 +44,7 @@ class Network extends \Zotlabs\Web\Controller {
$channel = \App::get_channel();
$item_normal = item_normal();
+ $item_normal_update = item_normal_update();
$datequery = $datequery2 = '';
@@ -480,7 +481,7 @@ class Network extends \Zotlabs\Web\Controller {
// this is an update
$r = q("SELECT item.parent AS item_id FROM item
left join abook on ( item.owner_xchan = abook.abook_xchan $abook_uids )
- WHERE true $uids $item_normal $simple_update
+ WHERE true $uids $item_normal_update $simple_update
and (abook.abook_blocked = 0 or abook.abook_flags is null)
$sql_extra3 $sql_extra $sql_nets "
);