Browse Source

We only need to fetch the content once

pull/6476/head
Michael 2 years ago
parent
commit
e2427eb9da
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/Protocol/ActivityPub/Transmitter.php

+ 1
- 4
src/Protocol/ActivityPub/Transmitter.php View File

@ -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…
Cancel
Save