This commit is contained in:
Aevann1 2021-12-27 05:13:48 +02:00
parent 3ed96a38d9
commit fc70feb512
2 changed files with 6 additions and 6 deletions

View file

@ -208,7 +208,7 @@ def api_comment(v):
if v.agendaposter and not v.marseyawarded:
for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l)
body = body.replace(' I ', f'@{v.username} ')
body = body.replace(' I ', f' @{v.username} ')
body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ')
body_html = sanitize(CustomRenderer().render(mistletoe.Document(body)))
@ -630,7 +630,7 @@ def edit_comment(cid, v):
if v.agendaposter and not v.marseyawarded:
for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l)
body = body.replace(' I ', f'@{v.username} ')
body = body.replace(' I ', f' @{v.username} ')
body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ')
if not c.options: