make chud award generate a mod log item when used by JL3

master
Aevann1 2022-09-21 22:55:34 +02:00
parent 302a852de3
commit f17bce610d
1 changed files with 9 additions and 0 deletions

View File

@ -288,6 +288,15 @@ def award_thing(v, thing_type, id):
else: author.agendaposter = int(time.time()) + 86400
badge_grant(user=author, badge_id=28)
if v.admin_level > 2:
ma = ModAction(
kind="agendaposter",
user_id=v.id,
target_user_id=author.id,
note=f"for 1 day"
)
g.db.add(ma)
elif kind == "flairlock":
if thing.ghost: abort(403)
new_name = note[:100].replace("𒐪","")