aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-19 09:04:24 +0000
committerMario <mario@mariovavti.com>2022-12-19 10:05:02 +0100
commitf6d940606350eb8685c278af6d87f3a0b8c0f5e5 (patch)
tree33a208aabbb1ef238a60c46f3ca9fa76de76a5ab /Zotlabs
parent6e881bcef2633e3ac573b023dd898639e3a0f452 (diff)
downloadvolse-hubzilla-f6d940606350eb8685c278af6d87f3a0b8c0f5e5.tar.gz
volse-hubzilla-f6d940606350eb8685c278af6d87f3a0b8c0f5e5.tar.bz2
volse-hubzilla-f6d940606350eb8685c278af6d87f3a0b8c0f5e5.zip
streamline ap followers only privacy warning with current handling. also fixes possible php error.
(cherry picked from commit 34125177e8973a0a419a1ea3b2c18ff62b782d97)
Diffstat (limited to 'Zotlabs')
-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))) {