make previous commit a little neater

master
Aevann1 2022-08-04 22:57:07 +02:00
parent 84f4fc164d
commit 6087aebc78
2 changed files with 2 additions and 2 deletions

View File

@ -738,7 +738,7 @@ def edit_comment(cid, v):
g.db.add(notif)
if v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower():
return {"error": f"You forgot to include {AGENDAPOSTER_PHRASE} in your comment!"}, 403
return {"error": f'You have to include "{AGENDAPOSTER_PHRASE}" in your comment!'}, 403
if int(time.time()) - c.created_utc > 60 * 3: c.edited_utc = int(time.time())

View File

@ -451,7 +451,7 @@ def edit_post(pid, v):
p.body_html = body_html
if v.id == p.author_id and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in f'{p.body}{p.title}'.lower():
return {"error": f"You forgot to include {AGENDAPOSTER_PHRASE} in your post!"}, 403
return {"error": f'You have to include "{AGENDAPOSTER_PHRASE}" in your post!'}, 403
if not p.private and not p.ghost: