From 6087aebc78b7fd9a15070c23d991f8ff3f1789cc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 4 Aug 2022 22:57:07 +0200 Subject: [PATCH] make previous commit a little neater --- files/routes/comments.py | 2 +- files/routes/posts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: