From: Friendika <info@friendika.com>
Date: Tue, 21 Jun 2011 07:56:24 +0000 (-0700)
Subject: only show app on top-level or standalone posts
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f387d93ae9f45a9feb7488f3b34bf2de90f328e;p=friendica.git

only show app on top-level or standalone posts
---

diff --git a/include/conversation.php b/include/conversation.php
index 1fd9c31eca..ff0a7612b1 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -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,