aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-08-21 16:02:51 +0000
committerMario <mario@mariovavti.com>2022-08-21 16:02:51 +0000
commita8752844eff70e714fc8c5faaa3fdc62c95b7e04 (patch)
treebf7cce1de8b49cdd7c02f4c4bfe5d081497de39f /Zotlabs/Lib
parente04ce5028ee569154f2145ced4548fa4dd89ef6d (diff)
downloadvolse-hubzilla-a8752844eff70e714fc8c5faaa3fdc62c95b7e04.tar.gz
volse-hubzilla-a8752844eff70e714fc8c5faaa3fdc62c95b7e04.tar.bz2
volse-hubzilla-a8752844eff70e714fc8c5faaa3fdc62c95b7e04.zip
Activity: check for other forms of as:Public, Search: make sure to run htmlspecialchars_decode on the AP url so that previously encoded chars will be decoded again
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 7840e9999..67cfeea79 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2680,8 +2680,7 @@ class Activity {
// assume this is private unless specifically told otherwise.
$s['item_private'] = 1;
-
- if ($act->recips && in_array(ACTIVITY_PUBLIC_INBOX, $act->recips)) {
+ if ($act->recips && (in_array(ACTIVITY_PUBLIC_INBOX, $act->recips) || in_array('Public', $act->recips) || in_array('as:Public', $act->recips))) {
$s['item_private'] = 0;
}