master
Aevann1 2022-04-22 17:05:34 +02:00
parent 088d510da6
commit bc762ff06c
2 changed files with 3 additions and 3 deletions

View File

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

View File

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