do not create/join inactive channels, issue #4
This commit is contained in:
parent
eed56e58a3
commit
722224807a
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ def query_alias(alias):
|
||||||
cdata = json.loads(r.text)['data']
|
cdata = json.loads(r.text)['data']
|
||||||
if cdata['type'] != 'io.pnut.core.chat':
|
if cdata['type'] != 'io.pnut.core.chat':
|
||||||
abort(404)
|
abort(404)
|
||||||
|
if 'is_active' in cdata:
|
||||||
|
if not cdata['is_active']:
|
||||||
|
abort(404)
|
||||||
raw = cdata['raw']
|
raw = cdata['raw']
|
||||||
for item in raw:
|
for item in raw:
|
||||||
if item['type'] == 'io.pnut.core.chat-settings':
|
if item['type'] == 'io.pnut.core.chat-settings':
|
||||||
|
|
Loading…
Reference in a new issue