This commit is contained in:
Aevann1 2022-01-21 22:56:56 +02:00
parent a070da8f83
commit ccd66d721a
7 changed files with 56 additions and 38 deletions

View file

@ -411,7 +411,7 @@ def edit_post(pid, v):
if title != p.title:
if v.agendaposter and not v.marseyawarded: title = torture_ap(title, v.username)
title_html = filter_emojis_only(title)
title_html = filter_emojis_only(title, edit=True)
if v.marseyawarded and len(list(re.finditer('>[^<\s+]|[^>\s+]<', title_html))): return {"error":"You can only type marseys!"}, 403
p.title = title[:500]
p.title_html = title_html