This commit is contained in:
Aevann1 2021-11-24 22:51:07 +02:00
parent bf62a3f7aa
commit e00bdb42a0
2 changed files with 12 additions and 12 deletions

View file

@ -197,8 +197,8 @@ def api_comment(v):
if v.agendaposter:
for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l)
body = body.replace('I ', f'@{v.username}')
body = censor_slurs2(body).upper().replace(' ME ', 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)))
@ -651,8 +651,8 @@ def edit_comment(cid, v):
if v.agendaposter:
for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l)
body = body.replace('I ', f'@{v.username}')
body = censor_slurs2(body).upper().replace(' ME ', 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)))