Issue 9135: Display only reshared posts at the top

This commit is contained in:
Michael 2020-09-08 22:06:10 +00:00
parent fb7f7435c0
commit 42dcd6646e
4 changed files with 10 additions and 3 deletions

View file

@ -758,6 +758,7 @@ function conversation_fetch_comments($thread_items, $pinned) {
if (!empty($direction)) {
foreach ($parentlines as $line) {
$comments[$line]['direction'] = $direction;
$comments[$line]['reshared'] = DI::l10n()->t('%s reshared this.', $actor['name']);
if (!empty($actor) && DI::pConfig()->get(local_user(), 'system', 'display_resharer') ) {
$comments[$line]['owner-link'] = $actor['link'];
$comments[$line]['owner-avatar'] = $actor['avatar'];