From dc9c52f6203f2deeda0191e31422f0772ed226bf Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 15 Nov 2024 20:02:57 +0200 Subject: [PATCH] try fixing the green dot bug --- 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 5b51d2655..c81fcc1e3 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -37,7 +37,7 @@ typing = {} cache.set('loggedin_chat', 0, timeout=86400) def get_referrer(): - if '?m=' in request.referrer: + if request.referrer and '?m=' in request.referrer: return request.referrer.split("?m=")[0] return request.referrer