aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Lockview.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-06-20 17:32:10 +0200
committerMario <mario@mariovavti.com>2019-06-20 17:32:10 +0200
commit5b727065cf650a982bca0252b36a70acb80d904d (patch)
tree7eb3c6d68a596d334b55149a748032cac370564d /Zotlabs/Module/Lockview.php
parent8c92b0cd3aaefde7a960fa1811021da247a4e28f (diff)
parent952e466d9121726f00c94b6527ff01255529b82c (diff)
downloadvolse-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/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