convert ITEM_WALL from bitfield to standalone

This commit is contained in:
redmatrix
2015-05-06 21:03:33 -07:00
parent 75b8bfc07a
commit 25b599a4bd
29 changed files with 98 additions and 90 deletions

View File

@@ -583,8 +583,7 @@ function identity_basic_export($channel_id, $items = false) {
/** @warning this may run into memory limits on smaller systems */
$r = q("select * from item where (item_flags & %d)>0 and not (item_restrict & %d)>0 and uid = %d",
intval(ITEM_WALL),
$r = q("select * from item where item_wall = 1 and (item_restrict & %d) = 0 and uid = %d",
intval(ITEM_DELETED),
intval($channel_id)
);