better method for me to deal with notif-spammers than blocking them

pull/195/head
Aevann 2023-08-15 19:27:44 +03:00
parent 1ab5968155
commit 3e596e6537
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None, followers_pi
if coin_receivers:
g.db.query(User).options(load_only(User.id)).filter(User.id.in_(coin_receivers)).update({ User.coins: User.coins + 10 })
if SITE == 'rdrama.net' and v.id in {256, 9287, 10489, 18701}:
notify_users.discard(AEVANN_ID)
return notify_users - BOT_IDs - {v.id, 0} - v.all_twoway_blocks