fix 500 error

master
Aevann 2024-11-15 15:04:55 +02:00
parent f2b431aa1a
commit da74025c0e
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ typing = {}
cache.set('loggedin_chat', 0, timeout=86400) cache.set('loggedin_chat', 0, timeout=86400)
def get_request_referrer(): def get_referrer():
if '?m=' in request.referrer: if '?m=' in request.referrer:
return request.referrer.split("?m=")[0] return request.referrer.split("?m=")[0]
return request.referrer return request.referrer