aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-04-13 12:08:17 +0200
committerGitHub <noreply@github.com>2017-04-13 12:08:17 +0200
commit2aa69257a4a56b42004e6c758ded644e85071ad9 (patch)
tree107e61f6b8b665f51c8826151b675a34e7f4e4cd /include/channel.php
parent7b173a75e47cfdf9f46b7d635df84b2be286b0e6 (diff)
parent9d425b472722e7ca33e93e09bb330763bed2d257 (diff)
downloadvolse-hubzilla-2aa69257a4a56b42004e6c758ded644e85071ad9.tar.gz
volse-hubzilla-2aa69257a4a56b42004e6c758ded644e85071ad9.tar.bz2
volse-hubzilla-2aa69257a4a56b42004e6c758ded644e85071ad9.zip
Merge pull request #715 from zotlabs/cpp
backend infrastructure for 'channel protection password'; which will …
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/channel.php b/include/channel.php
index 1bdd5a478..0a4c9009a 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -537,6 +537,8 @@ function identity_basic_export($channel_id, $sections = null) {
$ret['relocate'] = [ 'channel_address' => $r[0]['channel_address'], 'url' => z_root()];
if(in_array('channel',$sections)) {
$ret['channel'] = $r[0];
+ unset($ret['channel']['channel_password']);
+ unset($ret['channel']['channel_salt']);
}
}
@@ -2020,7 +2022,9 @@ function channel_store_lowlevel($arr) {
'channel_deny_gid' => ((array_key_exists('channel_deny_gid',$arr)) ? $arr['channel_deny_gid'] : ''),
'channel_removed' => ((array_key_exists('channel_removed',$arr)) ? $arr['channel_removed'] : '0'),
'channel_system' => ((array_key_exists('channel_system',$arr)) ? $arr['channel_system'] : '0'),
- 'channel_moved' => ((array_key_exists('channel_moved',$arr)) ? $arr['channel_moved'] : '')
+ 'channel_moved' => ((array_key_exists('channel_moved',$arr)) ? $arr['channel_moved'] : ''),
+ 'channel_password' => ((array_key_exists('channel_password',$arr)) ? $arr['channel_password'] : ''),
+ 'channel_salt' => ((array_key_exists('channel_salt',$arr)) ? $arr['channel_salt'] : '')
];
return create_table_from_array('channel',$store);