forked from rDrama/rDrama
minor fix to ping group logic
parent
f49bf6bc7b
commit
65501138ba
|
@ -161,10 +161,11 @@ def group_approve(v, group_name, user_id):
|
|||
if not application:
|
||||
abort(404, "There is no application to approve!")
|
||||
|
||||
if not application.approved_utc and v.id != application.user_id:
|
||||
if not application.approved_utc:
|
||||
application.approved_utc = time.time()
|
||||
g.db.add(application)
|
||||
send_repeatable_notification(application.user_id, f"@{v.username} (!{group}'s owner) has approved your application!")
|
||||
if v.id != application.user_id:
|
||||
send_repeatable_notification(application.user_id, f"@{v.username} (!{group}'s owner) has approved your application!")
|
||||
|
||||
return {"message": f'You have approved @{application.user.username} successfully!'}
|
||||
|
||||
|
|
Loading…
Reference in New Issue