From bc762ff06ce6ed41e5ef2bcc0665f744ac1d2b94 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 22 Apr 2022 17:05:34 +0200 Subject: [PATCH] fsd --- files/routes/comments.py | 2 +- files/routes/users.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 917b25211..295b68a6d 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -615,7 +615,7 @@ def api_comment(v): n = Notification(comment_id=c.id, user_id=x) g.db.add(n) - if parent.author.id != v.id and PUSHER_ID != 'blahblahblah': + if parent.author.id != v.id and PUSHER_ID != 'blahblahblah' and not v.shadowbanned: try: gevent.spawn(pusher_thread, f'{request.host}{parent.author.id}', c, c.author_name) except: pass diff --git a/files/routes/users.py b/files/routes/users.py index 456496ac0..c21bbda72 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -643,7 +643,7 @@ def message2(v, username): g.db.commit() - if PUSHER_ID != 'blahblahblah': + if PUSHER_ID != 'blahblahblah' and not v.shadowbanned: if len(message) > 500: notifbody = message[:500] + '...' else: notifbody = message @@ -718,7 +718,7 @@ def messagereply(v): notif = Notification(comment_id=c.id, user_id=user_id) g.db.add(notif) - if PUSHER_ID != 'blahblahblah': + if PUSHER_ID != 'blahblahblah' and not v.shadowbanned: if len(message) > 500: notifbody = message[:500] + '...' else: notifbody = message