]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Post/Share.php
Merge pull request #13070 from xundeenergie/fix-share-via
[friendica.git] / src / Module / Post / Share.php
index 78ea1c63156ac6d239e81ae3bc9b817fc10fa0eb..db95c38c947215d2e7d36e21df88d8099a404a28 100644 (file)
@@ -68,7 +68,7 @@ class Share extends \Friendica\BaseModule
                $shared = $this->contentItem->getSharedPost($item, ['uri']);
                if ($shared && empty($shared['comment'])) {
                        $content = '[share]' . $shared['post']['uri'] . '[/share]';
-               } elseif ($item['network'] == Protocol::FEED) {
+               } elseif (!empty($item['plink']) && !in_array($item['network'], Protocol::FEDERATED)) {
                        $content = '[attachment]' . $item['plink'] . '[/attachment]';
                } else {
                        $content = '[share]' . $item['uri'] . '[/share]';