]> git.mxchange.org Git - friendica.git/commitdiff
Issue 9167: Adding more direction indicators
authorMichael <heluecht@pirati.ca>
Wed, 9 Sep 2020 16:54:18 +0000 (16:54 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 9 Sep 2020 16:54:18 +0000 (16:54 +0000)
include/conversation.php
view/theme/frio/templates/sub/direction.tpl
view/theme/vier/templates/sub/direction.tpl

index 1d374c5ca903406a08ee70089413e55c65b8c7db..9af80e168bc40196dc424bc195a11d05e837843c 100644 (file)
@@ -741,13 +741,15 @@ function conversation_fetch_comments($thread_items, $pinned) {
                        $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'])
-                       && !Contact::isSharing($row['author-id'], $row['uid'])) {
-                       if ($row['post-type'] == Item::PT_TAG) {
-                               $row['direction'] = ['direction' => 4, 'title' => DI::l10n()->t('Tagged')];
+               if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id'])) {
+                       if (!Contact::isSharing($row['author-id'], $row['uid'])) {
+                               if ($row['post-type'] == Item::PT_TAG) {
+                                       $row['direction'] = ['direction' => 4, 'title' => DI::l10n()->t('Tagged')];
+                               }
+                               $parentlines[] = $lineno;
+                       } else {
+                               $row['direction'] = ['direction' => 6, 'title' => DI::l10n()->t('You are following %s.', $row['author-name'])];
                        }
-               
-                       $parentlines[] = $lineno;
                }
 
                if ($row['gravity'] == GRAVITY_PARENT) {
index 671272cd00025db316d867b3bdf55dcd706e47b2..abcd51797411a5043ba19538fa5a34d26fae6d18 100644 (file)
                <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>
+       {{elseif $direction.direction == 6}}
+               <i class="fa fa-check" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 7}}
+               <i class="fa fa-at" aria-hidden="true" title="{{$direction.title}}"></i>
        {{/if}}
 </span>
 {{/if}}
index 08f40c3a3b34abba379d7d602b35a4e1eea1155c..939623c1e213ba116d72b40f4893e6f172095631 100644 (file)
                <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>
+       {{elseif $direction.direction == 6}}
+               <i class="icon-ok-sign" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 7}}
+               <i class="icon-forward" aria-hidden="true" title="{{$direction.title}}"></i>
        {{/if}}
 </span>
 {{/if}}