Update include/conversation.php
authorMichael Vogel <icarus@dabo.de>
Wed, 9 Sep 2020 18:03:14 +0000 (20:03 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Sep 2020 18:03:14 +0000 (20:03 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
include/conversation.php

index 9af80e1..4afc7c6 100644 (file)
@@ -742,13 +742,14 @@ function conversation_fetch_comments($thread_items, $pinned) {
                }
 
                if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id'])) {
-                       if (!Contact::isSharing($row['author-id'], $row['uid'])) {
+                       if (Contact::isSharing($row['author-id'], $row['uid'])) {
+                               $row['direction'] = ['direction' => 6, 'title' => DI::l10n()->t('You are following %s.', $row['author-name'])];
+                       } else {
                                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'])];
+                               
                        }
                }