]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
show "parent unknown" when parent not federated
[friendica.git] / src / Object / Post.php
index 4df953cab6b608a4f00e2460f9296d162e0f4c46..91500cb99f8b1f00cc0e86d81a3daece1c5f1d31 100644 (file)
@@ -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('in reply to %s', $parent_username),
+                       '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,