- } else {
- if ($row['post-type'] == Item::PT_TAG) {
- $row['direction'] = ['direction' => 4, 'title' => DI::l10n()->t('Tagged')];
- }
- $parentlines[] = $lineno;
-
+ break;
+ case Item::PT_TAG:
+ $row['direction'] = ['direction' => 4, 'title' => DI::l10n()->t('Tagged')];
+ break;
+ case Item::PT_ANNOUNCEMENT:
+ $row['direction'] = ['direction' => 3, 'title' => DI::l10n()->t('Reshared')];
+ break;
+ case Item::PT_COMMENT:
+ $row['direction'] = ['direction' => 5, 'title' => DI::l10n()->t('%s is participating in this thread.', $row['author-name'])];
+ break;
+ 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;
+ 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;