aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-14 09:47:08 +0000
committerMario <mario@mariovavti.com>2024-03-14 09:47:08 +0000
commitb7bda0b87d1884b2b2b98f7d4ec00890311fc156 (patch)
tree40a8a429ccea207c3f9d6dcec39061123b0c13e6
parent6bf61dfa6b585db01b607a79bd64ec9c583a9c10 (diff)
downloadvolse-hubzilla-b7bda0b87d1884b2b2b98f7d4ec00890311fc156.tar.gz
volse-hubzilla-b7bda0b87d1884b2b2b98f7d4ec00890311fc156.tar.bz2
volse-hubzilla-b7bda0b87d1884b2b2b98f7d4ec00890311fc156.zip
return false if we have nothing to look at
-rw-r--r--Zotlabs/Lib/Activity.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index e19499c56..bb08ab48e 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -3190,6 +3190,10 @@ class Activity {
public static function media_not_in_body($s, $body) {
+ if (empty($body)) {
+ return false;
+ }
+
$s_alt = htmlspecialchars($s, ENT_QUOTES, 'UTF-8');
if (