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 /include | |
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 'include')
-rwxr-xr-x | include/items.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 8489ec162..d10d43687 100755 --- a/include/items.php +++ b/include/items.php @@ -182,6 +182,12 @@ function item_normal_search() { and item.item_blocked = 0 "; } +function item_normal_update() { + return " and item.item_hidden = 0 and item.item_type = 0 + and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0 + and item.item_blocked = 0 "; +} + /** * @brief |