aboutsummaryrefslogtreecommitdiffstats
path: root/mod/chat.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-03 16:41:40 -0700
committerredmatrix <git@macgirvin.com>2016-04-03 16:41:40 -0700
commitbf3f3564e08754c3f91524798523839ae7b9094c (patch)
treef1da047c364df5de64eb9467663787d2e5c6c0b3 /mod/chat.php
parent102d41ccb96f67363d50941f5ce4ca9bfd2ae6d5 (diff)
downloadvolse-hubzilla-bf3f3564e08754c3f91524798523839ae7b9094c.tar.gz
volse-hubzilla-bf3f3564e08754c3f91524798523839ae7b9094c.tar.bz2
volse-hubzilla-bf3f3564e08754c3f91524798523839ae7b9094c.zip
issue #138 ; make ajaxchat optional and configurable. For reasons we've discussed repeatedly the ajax chat will not be removed from core as XMPP chat does not provide decentralised access control compatible with nomadic identity.
Diffstat (limited to 'mod/chat.php')
-rw-r--r--mod/chat.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/chat.php b/mod/chat.php
index 75c364008..375d069be 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -208,6 +208,12 @@ function chat_content(&$a) {
$o = profile_tabs($a,((local_channel() && local_channel() == App::$profile['profile_uid']) ? true : false),App::$profile['channel_address']);
+ if(! feature_enabled(App::$profile['profile_uid'],'ajaxchat')) {
+ notice( t('Feature disabled.') . EOL);
+ return $o;
+ }
+
+
$acl = new Zotlabs\Access\AccessList($channel);
$channel_acl = $acl->get();