mood mostly working
This commit is contained in:
@@ -13,17 +13,17 @@ return array();
|
||||
// Call localize_item with the "brief" flag to get a one line status for activities.
|
||||
// This should set $item['localized'] to indicate we have a brief summary.
|
||||
|
||||
localize_item($item,true);
|
||||
localize_item($item);
|
||||
|
||||
// FIXME - we may need the parent
|
||||
|
||||
if(! $item['localized']) {
|
||||
if(! $item['localize']) {
|
||||
$itemem_text = (($item['item_flags'] & ITEM_THREAD_TOP)
|
||||
? sprintf( t("%s created a new post"), $item['author']['xchan_name'])
|
||||
: sprintf( t("%s commented on %s's post"), $item['author']['xchan_name'], $item['pname']));
|
||||
}
|
||||
else
|
||||
$itemem_text = $item['body'];
|
||||
$itemem_text = $item['localize'];
|
||||
|
||||
// convert this logic into a json array just like the system notifications
|
||||
|
||||
|
||||
Reference in New Issue
Block a user