]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
Merge pull request #9254 from annando/show-relay
[friendica.git] / include / conversation.php
index ed9086307b4b4cb9f604f8452e17a55e070f1189..b25fae4f71683b47317bba6bde90583a5124c613 100644 (file)
@@ -764,11 +764,13 @@ function conversation_fetch_comments($thread_items, $pinned) {
                        case Item::PT_GLOBAL:
                                $row['direction'] = ['direction' => 9, 'title' => DI::l10n()->t('Global')];
                                break;
-                       default:
-                               if ($row['uid'] == 0) {
-                                       $row['direction'] = ['direction' => 9, 'title' => DI::l10n()->t('Global')];
-                               }
-               }
+                       case Item::PT_RELAY:
+                               $row['direction'] = ['direction' => 10, 'title' => DI::l10n()->t('Relay')];
+                               break;
+                       case Item::PT_FETCHED:
+                               $row['direction'] = ['direction' => 2, 'title' => DI::l10n()->t('Fetched')];
+                               break;
+                       }
 
                if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id']) &&
                        !Contact::isSharing($row['author-id'], $row['uid'])) {