This commit is contained in:
Aevann1 2022-03-09 04:04:37 +02:00
parent febf7c98fb
commit 05ed7a2a05
26 changed files with 124 additions and 126 deletions

View file

@ -73,7 +73,7 @@ def notif_comment2(p):
if existing: return existing[0]
else:
text = f"@{p.author.username} has mentioned you: [{p.title}](/post/{p.id})"
if p.sub: text += f" in <a href='/s/{p.sub}'>/s/{p.sub}"
if p.sub: text += f" in <a href='/h/{p.sub}'>/h/{p.sub}"
text_html = sanitize(text, alert=True)
return create_comment(text_html)