]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
Merge pull request #9146 from tobiasd/2020.09-CHANGELOG
[friendica.git] / include / conversation.php
index ff7c28b608b01ed804a2116c6bf1d51c781f3c79..ed9086307b4b4cb9f604f8452e17a55e070f1189 100644 (file)
@@ -761,6 +761,13 @@ function conversation_fetch_comments($thread_items, $pinned) {
                        case Item::PT_STORED:
                                $row['direction'] = ['direction' => 8, 'title' => DI::l10n()->t('Stored')];
                                break;
+                       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')];
+                               }
                }
 
                if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id']) &&