mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:10:11 +00:00
Only share from federated posts
This commit is contained in:
parent
e4ab857d9d
commit
d1d1685e24
2 changed files with 9 additions and 4 deletions
|
@ -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]';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue