diff options
author | zotlabs <mike@macgirvin.com> | 2019-06-19 17:32:38 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-06-19 17:32:38 -0700 |
commit | 9d156141b1205e48bbb3008f2a3040caa4c33192 (patch) | |
tree | e3931bb66439f751b89b0063334c011872430bab /Zotlabs/Lib/ThreadItem.php | |
parent | becaa3b920bfe87c031c01bdf35d35db5c82e31e (diff) | |
download | volse-hubzilla-9d156141b1205e48bbb3008f2a3040caa4c33192.tar.gz volse-hubzilla-9d156141b1205e48bbb3008f2a3040caa4c33192.tar.bz2 volse-hubzilla-9d156141b1205e48bbb3008f2a3040caa4c33192.zip |
changes to support direct messages in zot6 (set item.item_private = 2 when private mentions are used and federate with zot:directMessage attribute which aligns with litepub:directMessage)
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 9161aa182..5e4600df2 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -98,7 +98,7 @@ class ThreadItem { $conv = $this->get_conversation(); $observer = $conv->get_observer(); - $lock = ((($item['item_private'] == 1) || (($item['uid'] == local_channel()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) + $lock = (((intval($item['item_private'])) || (($item['uid'] == local_channel()) && (strlen($item['allow_cid']) || strlen($item['allow_gid']) || strlen($item['deny_cid']) || strlen($item['deny_gid'])))) ? t('Private Message') : false); @@ -110,7 +110,7 @@ class ThreadItem { $shareable = true; $privacy_warning = false; - if(($item['item_private'] == 1) && ($item['owner']['xchan_network'] === 'activitypub')) { + if(intval($item['item_private']) && ($item['owner']['xchan_network'] === 'activitypub')) { $recips = get_iconfig($item['parent'], 'activitypub', 'recips'); if(! in_array($observer['xchan_url'], $recips['to'])) |