aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-07-20 11:46:40 +0000
committerMario <mario@mariovavti.com>2023-07-20 11:46:40 +0000
commit5181e575b4eb91de3ec71a125d45c29e65372c76 (patch)
tree71c2c8f7b6efe2ba9232c04324057cc982c136db /Zotlabs
parentca994735bee5f479d840da13674b38c40930ba98 (diff)
downloadvolse-hubzilla-5181e575b4eb91de3ec71a125d45c29e65372c76.tar.gz
volse-hubzilla-5181e575b4eb91de3ec71a125d45c29e65372c76.tar.bz2
volse-hubzilla-5181e575b4eb91de3ec71a125d45c29e65372c76.zip
fix accesslist in two cases
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php2
-rw-r--r--Zotlabs/Module/Chat.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 7fa621470..7d2bcde56 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -101,7 +101,7 @@ class ThreadItem {
$conv = $this->get_conversation();
$observer = $conv->get_observer();
- $acl = new AccessList(false);
+ $acl = new AccessList([]);
$acl->set($item);
$lock = ((intval($item['item_private']) || ($item['uid'] == local_channel() && $acl->is_private()))
diff --git a/Zotlabs/Module/Chat.php b/Zotlabs/Module/Chat.php
index fc74016ab..2d36e022a 100644
--- a/Zotlabs/Module/Chat.php
+++ b/Zotlabs/Module/Chat.php
@@ -181,7 +181,7 @@ class Chat extends Controller {
);
if($x) {
- $acl = new AccessList(false);
+ $acl = new AccessList([]);
$acl->set($x[0]);
$private = $acl->is_private();