We only need to fetch the content once
This commit is contained in:
@@ -553,10 +553,7 @@ class Transmitter
|
|||||||
// Only check for a reshare, if it is a real reshare and no quoted reshare
|
// Only check for a reshare, if it is a real reshare and no quoted reshare
|
||||||
if (strpos($item['body'], "[share") === 0) {
|
if (strpos($item['body'], "[share") === 0) {
|
||||||
$announce = api_share_as_retweet($item);
|
$announce = api_share_as_retweet($item);
|
||||||
if (!empty($announce['plink'])) {
|
$reshared = !empty($announce['plink']);
|
||||||
$data = ActivityPub::fetchContent($announce['plink'], $item['uid']);
|
|
||||||
$reshared = !empty($data);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($reshared) {
|
if ($reshared) {
|
||||||
|
|||||||
Reference in New Issue
Block a user