forked from rDrama/rDrama
1
0
Fork 0

minor fix to ping group logic

master
Aevann 2023-12-07 20:45:19 +02:00
parent f49bf6bc7b
commit 65501138ba
1 changed files with 3 additions and 2 deletions

View File

@ -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!'}