sdf
parent
c92c96b498
commit
38cb9f40f8
|
@ -59,7 +59,7 @@ def notif_comment(text, autojanny=False):
|
||||||
for i in re.finditer("<p>@((\w|-){1,25})", text_html):
|
for i in re.finditer("<p>@((\w|-){1,25})", text_html):
|
||||||
u = get_user(i.group(1), graceful=True)
|
u = get_user(i.group(1), graceful=True)
|
||||||
if u:
|
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()
|
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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue