no abort when socketio
parent
a51125e21b
commit
376776e306
|
@ -69,8 +69,7 @@ def speak(data, v):
|
||||||
chat_id = int(data['chat_id'])
|
chat_id = int(data['chat_id'])
|
||||||
|
|
||||||
chat = g.db.get(Chat, chat_id)
|
chat = g.db.get(Chat, chat_id)
|
||||||
if not chat:
|
if not chat: return ''
|
||||||
abort(404, "Chat not found!")
|
|
||||||
|
|
||||||
if chat.id == 1:
|
if chat.id == 1:
|
||||||
if not v.allowed_in_chat: return ''
|
if not v.allowed_in_chat: return ''
|
||||||
|
|
Loading…
Reference in New Issue