forked from MarseyWorld/MarseyWorld
make previous commit a little neater
parent
84f4fc164d
commit
6087aebc78
|
@ -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())
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue