Show if a post arrived via relay

This commit is contained in:
Michael 2020-09-21 12:31:20 +00:00
parent b8f3c4b065
commit c082109ff9
6 changed files with 23 additions and 8 deletions

View file

@ -764,10 +764,9 @@ 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;
}
if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id']) &&