forked from rDrama/rDrama
fart
parent
a2019ff48f
commit
cc869880f3
|
@ -211,6 +211,7 @@ def add_mod(v, sub):
|
||||||
mod = Mod(user_id=user.id, sub=sub)
|
mod = Mod(user_id=user.id, sub=sub)
|
||||||
g.db.add(mod)
|
g.db.add(mod)
|
||||||
|
|
||||||
|
if v.id != user.id:
|
||||||
send_repeatable_notification(user.id, f"@{v.username} has added you as a mod to /s/{sub}")
|
send_repeatable_notification(user.id, f"@{v.username} has added you as a mod to /s/{sub}")
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
@ -245,6 +246,7 @@ def remove_mod(v, sub):
|
||||||
|
|
||||||
g.db.delete(mod)
|
g.db.delete(mod)
|
||||||
|
|
||||||
|
if v.id != user.id:
|
||||||
send_repeatable_notification(user.id, f"@{v.username} has removed you as a mod from /s/{sub}")
|
send_repeatable_notification(user.id, f"@{v.username} has removed you as a mod from /s/{sub}")
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
Loading…
Reference in New Issue