From 558cd65a51b2c8b72147121cb48505569e074272 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 15 Nov 2024 14:59:04 +0200 Subject: [PATCH] fix 500 error --- files/routes/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index bc3143784..44662a6a7 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -227,7 +227,7 @@ def speak(data, v): send_notification(user.id, f"@{v.username} has removed you as a mod of their chat [{chat.name}](/chat/{chat.id})") if chat.id != 1: - print(get_chatroom(), flush=True) + print(request.referrer, flush=True) alrdy_here = set(online[request.referrer].keys()) print(alrdy_here, flush=True) memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(