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

This commit is contained in:
Mario Vavti
2017-09-03 21:33:07 +02:00
parent 1a0cf2666a
commit dc18440c18
5 changed files with 17 additions and 7 deletions

View File

@@ -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