aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-19 09:04:24 +0000
committerMario <mario@mariovavti.com>2022-12-19 09:04:24 +0000
commit34125177e8973a0a419a1ea3b2c18ff62b782d97 (patch)
tree9a4a270248dae0abab5d69681dad7eb1b393b1d0 /Zotlabs/Lib/ThreadItem.php
parentd977b5d66270c91de47bc8f67bd567833091d88f (diff)
downloadvolse-hubzilla-34125177e8973a0a419a1ea3b2c18ff62b782d97.tar.gz
volse-hubzilla-34125177e8973a0a419a1ea3b2c18ff62b782d97.tar.bz2
volse-hubzilla-34125177e8973a0a419a1ea3b2c18ff62b782d97.zip
streamline ap followers only privacy warning with current handling. also fixes possible php error.
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index e86e2cac1..d1b386c42 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -137,13 +137,7 @@ class ThreadItem {
$shareable = false;
}
- $privacy_warning = false;
- if(intval($item['item_private']) && ($item['owner']['xchan_network'] === 'activitypub')) {
- $recips = get_iconfig($item['parent'], 'activitypub', 'recips');
-
- if(! is_array($recips['to']) || ! in_array($observer['xchan_url'], $recips['to']))
- $privacy_warning = true;
- }
+ $privacy_warning = ($item['owner']['xchan_network'] === 'activitypub' && intval($item['item_private']) === 1);
if ($lock) {
if (($item['mid'] == $item['parent_mid']) && isset($item['term']) && count(get_terms_oftype($item['term'], TERM_FORUM))) {