revert c67e27efa2
why did i think it was a good idea to do it api side Signed-off-by: carsand101 <carsand101@noreply.codeberg.org>
This commit is contained in:
parent
c67e27efa2
commit
232798fa17
3
main
3
main
|
@ -223,13 +223,10 @@ def chatsend(roomid):
|
||||||
}, 403
|
}, 403
|
||||||
|
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
if not content.isspace():
|
|
||||||
conn.execute("INSERT INTO chatmessages (content, chatroom_id, creator, created) VALUES (?, ?, ?, ?)",
|
conn.execute("INSERT INTO chatmessages (content, chatroom_id, creator, created) VALUES (?, ?, ?, ?)",
|
||||||
(content, roomid, userCookie["id"], str(time.time())))
|
(content, roomid, userCookie["id"], str(time.time())))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
else:
|
|
||||||
# do something
|
|
||||||
|
|
||||||
global burgerMessageCache
|
global burgerMessageCache
|
||||||
global burgerMessageUpdate
|
global burgerMessageUpdate
|
||||||
|
|
Reference in New Issue