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:
@@ -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
|
||||
|
Reference in New Issue
Block a user