X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FPost.php;h=0561f5506c7a2680b245a34ede7bdd0e65e7a15e;hb=55369613d46eda72d5e120d5cf66703867eb03e3;hp=827f1dc23809b55b1b618a1ebfff957367e36aa7;hpb=322b7c856ca9ba53bd9c7da50dd5c1e3c9197d56;p=friendica.git diff --git a/src/Object/Post.php b/src/Object/Post.php index 827f1dc238..0561f5506c 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -135,8 +135,6 @@ class Post */ public function getTemplateData(array $conv_responses, string $formSecurityToken, $thread_level = 1) { - $a = DI::app(); - $item = $this->getData(); $edited = false; // If the time between "created" and "edited" differs we add @@ -177,6 +175,8 @@ class Post ? DI::l10n()->t('Private Message') : false); + $connector = !$item['global'] ? DI::l10n()->t('Connector Message') : false; + $shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != Item::PRIVATE; $announceable = $shareable && in_array($item['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::TWITTER]); @@ -469,6 +469,7 @@ class Post 'app' => $item['app'], 'created' => $ago, 'lock' => $lock, + 'connector' => $connector, 'location_html' => $location_html, 'indent' => $indent, 'shiny' => $shiny, @@ -477,6 +478,7 @@ class Post 'owner_photo' => DI::baseUrl()->remove(Contact::getAvatarUrlForUrl($item['owner-link'], $item['uid'], Proxy::SIZE_THUMB)), 'owner_name' => $this->getOwnerName(), 'plink' => Item::getPlink($item), + 'browsershare' => DI::l10n()->t('Share'), 'edpost' => $edpost, 'ispinned' => $ispinned, 'pin' => $pin,