]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
Merge pull request #11159 from annando/api-finally-moved
[friendica.git] / src / Object / Post.php
index 827f1dc23809b55b1b618a1ebfff957367e36aa7..0561f5506c7a2680b245a34ede7bdd0e65e7a15e 100644 (file)
@@ -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,