more heavy lifting on delivery - now we can find all the recipients on the system who have any acceptable permissions for receiving a post. Next we just need to process edits and deletes, and otherwise store the message - yay. Still a lot of work, but we've come a long way baby.
This commit is contained in:
@@ -656,11 +656,11 @@ function encode_item_flags($item) {
|
||||
// ITEM_DELETED is handled in encode_item directly so we don't need to handle it here.
|
||||
|
||||
$ret = array();
|
||||
if($item['flags'] & ITEM_THREAD_TOP)
|
||||
if($item['item_flags'] & ITEM_THREAD_TOP)
|
||||
$ret[] = 'thread_parent';
|
||||
if($item['flags'] & ITEM_NSFW)
|
||||
if($item['item_flags'] & ITEM_NSFW)
|
||||
$ret[] = 'nsfw';
|
||||
if($item['flags'] & ITEM_PRIVATE)
|
||||
if($item['item_flags'] & ITEM_PRIVATE)
|
||||
$ret[] = 'private';
|
||||
|
||||
return $ret;
|
||||
|
||||
Reference in New Issue
Block a user