a bit more progress on the new network/home ajax notifications, at least I've now got a plan

This commit is contained in:
friendica
2012-11-13 16:04:22 -08:00
parent 15c8da101a
commit 4af6d77de3
3 changed files with 36 additions and 50 deletions

View File

@@ -82,7 +82,8 @@ function item_redir_and_replace_images($body, $images, $cid) {
/**
* Render actions localized
*/
function localize_item(&$item){
function localize_item(&$item,$brief = false){
$extracted = item_extract_images($item['body']);
if($extracted['images'])
@@ -123,7 +124,10 @@ function localize_item(&$item){
break;
case ACTIVITY_OBJ_NOTE:
default:
$post_type = t('status');
if(! ($item_flags & ITEM_THREAD_TOP))
$post_type = t('comment');
else
$post_type = t('status');
break;
}