aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-04-20 09:34:00 +0000
committerMario <mario@mariovavti.com>2020-04-20 09:34:00 +0000
commit244936b0fd3ac60defa9fa6042e6ee3be869721c (patch)
tree298ae3ea65af63028fb7fd22880569317276fb1a /Zotlabs/Lib/Activity.php
parentf430a24fa38ea9d47d2916243e33d61b08f50f0f (diff)
downloadvolse-hubzilla-244936b0fd3ac60defa9fa6042e6ee3be869721c.tar.gz
volse-hubzilla-244936b0fd3ac60defa9fa6042e6ee3be869721c.tar.bz2
volse-hubzilla-244936b0fd3ac60defa9fa6042e6ee3be869721c.zip
some work on improving federation of item_private and make sure we deal with an array in array_path_exists()
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 613f939ab..322579610 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2339,8 +2339,13 @@ class Activity {
$s['plink'] = $s['mid'];
}
- if ($act->recips && (! in_array(ACTIVITY_PUBLIC_INBOX,$act->recips)))
- $s['item_private'] = 1;
+ // assume this is private unless specifically told otherwise.
+
+ $s['item_private'] = 1;
+
+ if ($act->recips && in_array(ACTIVITY_PUBLIC_INBOX, $act->recips)) {
+ $s['item_private'] = 0;
+ }
if (is_array($act->obj)) {
if (array_key_exists('directMessage',$act->obj) && intval($act->obj['directMessage'])) {