https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e7c594
)
We only need to fetch the content once
author
Michael
<heluecht@pirati.ca>
Sun, 20 Jan 2019 22:56:33 +0000
(22:56 +0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 20 Jan 2019 22:56:33 +0000
(22:56 +0000)
src/Protocol/ActivityPub/Transmitter.php
patch
|
blob
|
history
diff --git
a/src/Protocol/ActivityPub/Transmitter.php
b/src/Protocol/ActivityPub/Transmitter.php
index
671f427
..
c8285aa
100644
(file)
--- 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) {