forked from rDrama/rDrama
1
0
Fork 0

re-allow notifs on admigger threads

master
Aevann1 2022-07-13 21:21:13 +02:00
parent ff4f423c2c
commit 3554ae8e7c
1 changed files with 129 additions and 135 deletions

View File

@ -417,7 +417,6 @@ def api_comment(v):
n = Notification(comment_id=c_based.id, user_id=v.id)
g.db.add(n)
if parent_post.id not in ADMIGGERS:
if v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower():
c.is_banned = True
@ -546,11 +545,8 @@ def api_comment(v):
zozbot.coins += 3
g.db.add(zozbot)
if v.id == 1: print('wtf', flush=True)
if not v.shadowbanned:
if v.id == 1: print('nigga', flush=True)
notify_users = NOTIFY_USERS(body, v)
if v.id == 1: print(notify_users, flush=True)
if c.level == 1:
subscribers = g.db.query(Subscription.user_id).filter(Subscription.submission_id == c.parent_submission, Subscription.user_id != v.id).all()
@ -561,8 +557,6 @@ def api_comment(v):
if parent.author.id != v.id:
notify_users.add(parent.author.id)
if v.id == 1: print(notify_users-bots, flush=True)
for x in notify_users-bots:
n = Notification(comment_id=c.id, user_id=x)
g.db.add(n)