]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
[frio] Add a conditional browser share button
[friendica.git] / src / Object / Post.php
index 4c6de164a00562c4fb2c6e3bfd20f21c4227be95..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
@@ -480,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,