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:
friendica
2012-11-26 16:48:04 -08:00
parent ccf44f2514
commit d79d698beb
3 changed files with 72 additions and 13 deletions

View File

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