aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Lockview.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-06-19 17:32:38 -0700
committerzotlabs <mike@macgirvin.com>2019-06-19 17:32:38 -0700
commit9d156141b1205e48bbb3008f2a3040caa4c33192 (patch)
treee3931bb66439f751b89b0063334c011872430bab /Zotlabs/Module/Lockview.php
parentbecaa3b920bfe87c031c01bdf35d35db5c82e31e (diff)
downloadvolse-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/Module/Lockview.php')
-rw-r--r--Zotlabs/Module/Lockview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Lockview.php b/Zotlabs/Module/Lockview.php
index d7ed07a53..8c8519c57 100644
--- a/Zotlabs/Module/Lockview.php
+++ b/Zotlabs/Module/Lockview.php
@@ -76,7 +76,7 @@ class Lockview extends \Zotlabs\Web\Controller {
killme();
}
- if(($item['item_private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
+ if(intval($item['item_private']) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
&& (! strlen($item['deny_cid'])) && (! strlen($item['deny_gid']))) {
// if the post is private, but public_policy is blank ("visible to the internet"), and there aren't any