From: Hypolite Petovan Date: Sat, 7 Oct 2023 09:22:40 +0000 (-0400) Subject: Merge pull request #13510 from annando/fix-thread-parent X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee0f8cd3c9dd2bf8b0100072a2c4d1a84affca85;p=friendica.git Merge pull request #13510 from annando/fix-thread-parent Fix for the display of the thread parent --- ee0f8cd3c9dd2bf8b0100072a2c4d1a84affca85 diff --cc src/Object/Post.php index c5a4be9d78,9240079fb7..4df953cab6 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@@ -496,9 -497,12 +497,12 @@@ class Pos $browsershare = null; } + $parent_guid = $thread_parent[$item['thr-parent-id']]['guid'] ?? ''; + $parent_username = $thread_parent[$item['thr-parent-id']]['name'] ?? ''; + $tmp_item = [ 'parentguid' => $parent_guid, - 'isreplyto' => DI::l10n()->t('is reply to %s', $parent_username), + 'isreplyto' => DI::l10n()->t('in reply to %s', $parent_username), 'template' => $this->getTemplate(), 'type' => implode('', array_slice(explode('/', $item['verb']), -1)), 'comment_firstcollapsed' => false,