]> git.mxchange.org Git - friendica.git/commitdiff
only show app on top-level or standalone posts
authorFriendika <info@friendika.com>
Tue, 21 Jun 2011 07:56:24 +0000 (00:56 -0700)
committerFriendika <info@friendika.com>
Tue, 21 Jun 2011 07:56:24 +0000 (00:56 -0700)
include/conversation.php

index 1fd9c31eca3c55f20e21a795d7be5191032f2126..ff0a7612b13a1a08640d7535fa648b1d6cf4f7bf 100644 (file)
@@ -464,7 +464,7 @@ function conversation(&$a, $items, $mode, $update) {
                                '$sparkle' => $sparkle,
                                '$title' => $item['title'],
                                '$body' => $body,
-                               '$ago' => (($item['app']) ? sprintf( t('%s from %s'),relative_date($item['created']),$item['app']) : relative_date($item['created'])),
+                               '$ago' => ((($item['app']) && ($item['id'] == $item['parent'])) ? sprintf( t('%s from %s'),relative_date($item['created']),$item['app']) : relative_date($item['created'])),
                                '$lock' => $lock,
                                '$location' => $location,
                                '$indent' => $indent,