diff --git a/files/routes/comments.py b/files/routes/comments.py index 001aad93a..c2aa4fa25 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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()) diff --git a/files/routes/posts.py b/files/routes/posts.py index ce56f701d..47ece2d59 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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: