From cf49656bd14c715e4f4215653fdf1c3dee58e6b9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 1 Jun 2024 10:09:37 +0300 Subject: [PATCH] fix 500 error --- files/helpers/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index d3efbd4b7..3b7196d90 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -279,7 +279,7 @@ def push_notif(uids, title, body, url_or_comment): if not uids: return - if hasattr(g, 'v') and g.v and g.v.admin_level and not url_or_comment.startswith(f'{SITE_FULL}/chat/182'): + if hasattr(g, 'v') and g.v and g.v.admin_level and not (isinstance(url_or_comment, str) and url_or_comment.startswith(f'{SITE_FULL}/chat/182')): return if isinstance(url_or_comment, Comment):