remotes/1693045480750635534/spooky-22
Aevann1 2022-01-04 15:20:01 +02:00
parent c92c96b498
commit 38cb9f40f8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def notif_comment(text, autojanny=False):
for i in re.finditer("<p>@((\w|-){1,25})", text_html):
u = get_user(i.group(1), graceful=True)
if u:
text_html = text_html.replace(f'<p>@{u.username}', f'<p><a href="/id/{user.id}"><img loading="lazy" src="/uid/{u.id}/pic" class="pp20">@{u.username}</a>')
text_html = text_html.replace(f'<p>@{u.username}', f'<p><a href="/id/{u.id}"><img loading="lazy" src="/uid/{u.id}/pic" class="pp20">@{u.username}</a>')
existing = g.db.query(Comment.id).filter_by(author_id=author_id, parent_submission=None, distinguish_level=6, body_html=text_html, created_utc=0).first()