aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index b6f38df20..22dbaad84 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -637,7 +637,9 @@ class Activity {
$ret['tag'] = $t;
}
- if (str_contains($i['body'], '[/share]')) {
+ // TODO: Do not replace the if the owner is a forum.
+ // Receivers will not be able to fetch the original in that case.
+ if (str_contains($i['body'], '[/share]') && !$i['owner']['xchan_pubforum']) {
preg_match_all('/\[share(.*?)\[\/share\]/ism', $i['body'], $all_shares, PREG_SET_ORDER);
$quote_urls = [];
@@ -2351,7 +2353,7 @@ class Activity {
continue;
}
- $s['body'] = self::pasteQuote($s['body'], $quote);
+ $s['body'] = self::pasteQuote($s['body'] ?? EMPTY_STR, $quote);
$s['term'] = $quote['term'];
}
}