Testing #307

Merged
bones7242 merged 16 commits from testing into master 2017-12-19 00:30:32 +01:00
Showing only changes of commit 592fbb79d8 - Show all commits

View file

@ -57,7 +57,12 @@ module.exports = {
}; };
}, },
parsePublishApiChannel ({channelName, channelPassword}, user) { parsePublishApiChannel ({channelName, channelPassword}, user) {
logger.debug('publish api parser input:', {channelName, channelPassword, user});
// if no channel name provided, publish will be anonymous // if no channel name provided, publish will be anonymous
// if anonymous or '' provided, publish will be anonymous (even if client is logged in)
if (channelName === 'anonymous' || channelName === '') {
channelName = null;
}
// if a channel name is provided... // if a channel name is provided...
if (channelName) { if (channelName) {
// make sure a password was provided // make sure a password was provided