fix 500 error
parent
68ab65871b
commit
bc7035fa7f
|
@ -338,7 +338,7 @@ def group_usurp(v, group_name):
|
|||
).first()
|
||||
|
||||
if is_active or not month_old_applications:
|
||||
send_notification(user.id, f"@{v.username} has tried to usurp control of !{group.name} from you and failed because you reviewed a membership application in the past month!")
|
||||
send_notification(group.owner_id, f"@{v.username} has tried to usurp control of !{group.name} from you and failed because you reviewed a membership application in the past month!")
|
||||
g.db.commit()
|
||||
abort(403, "The current regime has reviewed a membership application in the past month, so you can't usurp them!")
|
||||
|
||||
|
|
Loading…
Reference in New Issue