forked from rDrama/rDrama
1
0
Fork 0

fix 500 error

master
Aevann 2024-06-01 10:09:37 +03:00
parent 0935803493
commit cf49656bd1
1 changed files with 1 additions and 1 deletions

View File

@ -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):