aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-25 15:29:59 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-25 15:29:59 +0200
commit33700e9cf47e2b5f0b4597772d9cea81e811bae3 (patch)
tree42c00549dba641bc7c8e6547fc2ef131bdd60cd6 /Zotlabs/Lib/ThreadItem.php
parenteebeb450c3e0eef632dc86d7656521787ec94f91 (diff)
downloadvolse-hubzilla-33700e9cf47e2b5f0b4597772d9cea81e811bae3.tar.gz
volse-hubzilla-33700e9cf47e2b5f0b4597772d9cea81e811bae3.tar.bz2
volse-hubzilla-33700e9cf47e2b5f0b4597772d9cea81e811bae3.zip
differentiate between direct messages and followers-only messages
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 0fed78158..a3c7f99b9 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -103,8 +103,12 @@ class ThreadItem {
$shareable = true;
$privacy_warning = false;
- if($item['owner']['xchan_network'] === 'activitypub')
- $privacy_warning = true;
+ if(($item['item_private'] == 1) && ($item['owner']['xchan_network'] === 'activitypub')) {
+ $recips = get_iconfig($item['parent'], 'activitypub', 'recips');
+
+ if(! in_array($observer['xchan_url'], $recips['to']))
+ $privacy_warning = true;
+ }
$mode = $conv->get_mode();