mirror of
https://github.com/friendica/friendica
synced 2024-11-18 19:03:40 +00:00
We only need to fetch the content once
This commit is contained in:
parent
9e7c59481f
commit
e2427eb9da
1 changed files with 1 additions and 4 deletions
|
@ -553,10 +553,7 @@ class Transmitter
|
|||
// Only check for a reshare, if it is a real reshare and no quoted reshare
|
||||
if (strpos($item['body'], "[share") === 0) {
|
||||
$announce = api_share_as_retweet($item);
|
||||
if (!empty($announce['plink'])) {
|
||||
$data = ActivityPub::fetchContent($announce['plink'], $item['uid']);
|
||||
$reshared = !empty($data);
|
||||
}
|
||||
$reshared = !empty($announce['plink']);
|
||||
}
|
||||
|
||||
if ($reshared) {
|
||||
|
|
Loading…
Reference in a new issue