forked from rDrama/rDrama
fix 500 error in /revert_actions
parent
2509861d27
commit
b79638b2dd
|
@ -267,6 +267,7 @@ def revert_actions(v, username):
|
|||
user.unban_utc = 0
|
||||
user.ban_evade = 0
|
||||
user.ban_reason = None
|
||||
if user.is_banned:
|
||||
send_repeatable_notification(user.id, f"@{v.username} has unbanned you!")
|
||||
g.db.add(user)
|
||||
for u in user.alts:
|
||||
|
@ -275,6 +276,7 @@ def revert_actions(v, username):
|
|||
u.unban_utc = 0
|
||||
u.ban_evade = 0
|
||||
u.ban_reason = None
|
||||
if u.is_banned:
|
||||
send_repeatable_notification(u.id, f"@{v.username} has unbanned you!")
|
||||
g.db.add(u)
|
||||
|
||||
|
|
Loading…
Reference in New Issue