From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Thu, 3 Sep 2020 14:19:17 +0000 (-0400)
Subject: Improve post direction display
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=730a5c5725cd82e51ede61d5d5df316b1221aa3b;p=friendica.git

Improve post direction display

- [frio] Change icon for commented direction
- Update English translation string for commented direction
---

diff --git a/include/conversation.php b/include/conversation.php
index c668e53d9d..6fcdd65812 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -725,7 +725,7 @@ function conversation_fetch_comments($thread_items, $pinned) {
 
 		if (!empty($parentlines) && empty($direction) && ($row['gravity'] == GRAVITY_COMMENT)
 			&& Contact::isSharing($row['author-id'], $row['uid'])) {
-			$direction = ['direction' => 2, 'title' => DI::l10n()->t('%s commented this.', $row['author-name'])];
+			$direction = ['direction' => 5, 'title' => DI::l10n()->t('%s commented on this.', $row['author-name'])];
 		}
 
 		if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id'])
diff --git a/view/theme/frio/templates/sub/direction.tpl b/view/theme/frio/templates/sub/direction.tpl
index 609a5105b2..4113c9beed 100644
--- a/view/theme/frio/templates/sub/direction.tpl
+++ b/view/theme/frio/templates/sub/direction.tpl
@@ -9,6 +9,8 @@
 		<i class="fa fa-share-alt" aria-hidden="true" title="{{$direction.title}}"></i>
 	{{elseif $direction.direction == 4}}
 		<i class="fa fa-hashtag" aria-hidden="true" title="{{$direction.title}}"></i>
+	{{elseif $direction.direction == 5}}
+		<i class="fa fa-comment-o" aria-hidden="true" title="{{$direction.title}}"></i>
 	{{/if}}
 </span>
 {{/if}}
diff --git a/view/theme/vier/templates/sub/direction.tpl b/view/theme/vier/templates/sub/direction.tpl
index f884d51c26..08f40c3a3b 100644
--- a/view/theme/vier/templates/sub/direction.tpl
+++ b/view/theme/vier/templates/sub/direction.tpl
@@ -9,6 +9,8 @@
 		<i class="icon-share" aria-hidden="true" title="{{$direction.title}}"></i>
 	{{elseif $direction.direction == 4}}
 		<i class="icon-tag" aria-hidden="true" title="{{$direction.title}}"></i>
+	{{elseif $direction.direction == 5}}
+		<i class="icon-commenting" aria-hidden="true" title="{{$direction.title}}"></i>
 	{{/if}}
 </span>
 {{/if}}