diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-09-03 21:33:07 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-09-03 21:33:07 +0200 |
commit | dc18440c18549a07b31c7506316e7a4bd40b9712 (patch) | |
tree | ed905c6494a8858d8ac264a141891524d8e631f5 /Zotlabs/Module/Pubstream.php | |
parent | 1a0cf2666a757314edfb5f6f1ea40c5e1e8750ea (diff) | |
download | volse-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/Pubstream.php')
-rw-r--r-- | Zotlabs/Module/Pubstream.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php index 5db485d21..ef818845c 100644 --- a/Zotlabs/Module/Pubstream.php +++ b/Zotlabs/Module/Pubstream.php @@ -21,6 +21,7 @@ class Pubstream extends \Zotlabs\Web\Controller { return; $item_normal = item_normal(); + $item_normal_update = item_normal_update(); $static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0); @@ -134,7 +135,7 @@ class Pubstream extends \Zotlabs\Web\Controller { $r = q("SELECT distinct item.id AS item_id, $ordering FROM item left join abook on item.author_xchan = abook.abook_xchan - WHERE true $uids $item_normal + WHERE true $uids $item_normal_update AND item.parent = item.id $simple_update and (abook.abook_blocked = 0 or abook.abook_flags is null) $sql_extra3 $sql_extra $sql_nets" |