From e2427eb9da8d32c35488b609f79e167786168ecc Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 20 Jan 2019 22:56:33 +0000 Subject: [PATCH] We only need to fetch the content once --- src/Protocol/ActivityPub/Transmitter.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 671f4279a2..c8285aa35a 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -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) {