mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
show "parent unknown" when parent not federated
in some cases (visibility is private of parent comment), there is no parent federated to my instance, and then the comment "hangs around" with no information, why there is no parent. For normal users this can be confusing, why all exept "this" comment have parents. So i added a simple text instead of link to parent with a "title" field with a small explanation, why parent is not viewable. translations done
This commit is contained in:
parent
45efa4ec87
commit
4b2e920957
3 changed files with 81 additions and 57 deletions
|
@ -499,10 +499,13 @@ class Post
|
|||
|
||||
$parent_guid = $thread_parent[$item['thr-parent-id']]['guid'] ?? '';
|
||||
$parent_username = $thread_parent[$item['thr-parent-id']]['name'] ?? '';
|
||||
$parent_unknown = $parent_username ? '' : DI::l10n()->t('parent unknown');
|
||||
|
||||
$tmp_item = [
|
||||
'parentguid' => $parent_guid,
|
||||
'isreplyto' => DI::l10n()->t('is reply to %s', $parent_username),
|
||||
'isunknown' => $parent_unknown,
|
||||
'isunknown_label' => DI::l10n()->t('parent is probably private or not federated'),
|
||||
'template' => $this->getTemplate(),
|
||||
'type' => implode('', array_slice(explode('/', $item['verb']), -1)),
|
||||
'comment_firstcollapsed' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue