X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FPost.php;h=2cf02f8e2a1892ffd60fbedba5e03cb428407e4c;hb=94a8f430e3116844c781b455cb0d2f99206d209d;hp=45104130081d34c8c0cbefcfa9565d96dccdeb17;hpb=ba1bdc69208a4deee39dd54dda11b730448643dc;p=friendica.git diff --git a/src/Object/Post.php b/src/Object/Post.php index 4510413008..2cf02f8e2a 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -249,7 +249,7 @@ class Post ]; } - if (!$item['self']) { + if (!$item['self'] && local_user()) { $block = [ 'blocking' => true, 'block' => DI::l10n()->t('Block %s', $item['author-name']), @@ -445,6 +445,12 @@ class Post $languages = [DI::l10n()->t('Languages'), Item::getLanguageMessage($item)]; } + if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]) && in_array($item['network'], Protocol::FEDERATED)) { + $browsershare = [DI::l10n()->t('Share via ...'), DI::l10n()->t('Share via external services')]; + } else { + $browsershare = null; + } + $tmp_item = [ 'template' => $this->getTemplate(), 'type' => implode("", array_slice(explode("/", $item['verb']), -1)), @@ -496,7 +502,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'), + 'browsershare' => $browsershare, 'edpost' => $edpost, 'ispinned' => $ispinned, 'pin' => $pin,