do not create/join inactive channels, issue #4

This commit is contained in:
Morgan McMillian 2017-03-05 13:05:09 -08:00
parent eed56e58a3
commit 722224807a

View file

@ -96,6 +96,9 @@ def query_alias(alias):
cdata = json.loads(r.text)['data']
if cdata['type'] != 'io.pnut.core.chat':
abort(404)
if 'is_active' in cdata:
if not cdata['is_active']:
abort(404)
raw = cdata['raw']
for item in raw:
if item['type'] == 'io.pnut.core.chat-settings':