aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-13 16:04:22 -0800
committerfriendica <info@friendica.com>2012-11-13 16:04:22 -0800
commit4af6d77de3e282002682c28b2709b217b4ae9306 (patch)
treeb9eb0f4049b65cceab22b0e88de381bbd01af432 /include/conversation.php
parent15c8da101aa8bf0b2362a27279861c58b14596b5 (diff)
downloadvolse-hubzilla-4af6d77de3e282002682c28b2709b217b4ae9306.tar.gz
volse-hubzilla-4af6d77de3e282002682c28b2709b217b4ae9306.tar.bz2
volse-hubzilla-4af6d77de3e282002682c28b2709b217b4ae9306.zip
a bit more progress on the new network/home ajax notifications, at least I've now got a plan
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index be6b3f3ef..74160c309 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -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;
}