diff options
author | Mario <mario@mariovavti.com> | 2019-06-20 17:32:10 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-06-20 17:32:10 +0200 |
commit | 5b727065cf650a982bca0252b36a70acb80d904d (patch) | |
tree | 7eb3c6d68a596d334b55149a748032cac370564d /Zotlabs/Lib/Activity.php | |
parent | 8c92b0cd3aaefde7a960fa1811021da247a4e28f (diff) | |
parent | 952e466d9121726f00c94b6527ff01255529b82c (diff) | |
download | volse-hubzilla-5b727065cf650a982bca0252b36a70acb80d904d.tar.gz volse-hubzilla-5b727065cf650a982bca0252b36a70acb80d904d.tar.bz2 volse-hubzilla-5b727065cf650a982bca0252b36a70acb80d904d.zip |
Merge branch 'dev' into 'dev'
changes to support direct messages in zot6 (set item.item_private = 2 when...
See merge request hubzilla/core!1679
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 0808fe33f..931238a25 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -312,6 +312,10 @@ class Activity { } } + if (intval($i['item_private']) === 2) { + $ret['directMessage'] = true; + } + $ret['attributedTo'] = $i['author']['xchan_url']; if($i['id'] != $i['parent']) { @@ -1415,6 +1419,11 @@ class Activity { if($act->recips && (! in_array(ACTIVITY_PUBLIC_INBOX,$act->recips))) $s['item_private'] = 1; + + if (array_key_exists('directMessage',$act->obj) && intval($act->obj['directMessage'])) { + $s['item_private'] = 2; + } + set_iconfig($s,'activitypub','recips',$act->raw_recips); if($parent) { set_iconfig($s,'activitypub','rawmsg',$act->raw,1); |