]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Update src/Object/Post.php
[friendica.git] / src / Object / Post.php
index 9240079fb76f9861c047f31f1a346c3905b1bbd7..8d7ff128dc3911c172b7e3f7e80b0661f784795e 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('Unknown parent');
 
                $tmp_item = [
                        'parentguid'      => $parent_guid,
-                       'isreplyto'       => DI::l10n()->t('is reply to %s', $parent_username),
+                       'inreplyto'       => DI::l10n()->t('in 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,