Display a symbol when a post had been reshared

This commit is contained in:
Michael 2020-08-23 13:26:23 +00:00
parent b052896c64
commit 0e4d3fe9e5
3 changed files with 24 additions and 1 deletions

View file

@ -409,7 +409,9 @@ class Post
}
$direction = [];
if (DI::config()->get('debug', 'show_direction')) {
if (!empty($item['direction'])) {
$direction = $item['direction'];
} elseif (DI::config()->get('debug', 'show_direction')) {
$conversation = DBA::selectFirst('conversation', ['direction'], ['item-uri' => $item['uri']]);
if (!empty($conversation['direction']) && in_array($conversation['direction'], [1, 2])) {
$title = [1 => DI::l10n()->t('Pushed'), 2 => DI::l10n()->t('Pulled')];