fix repeated mentions

pull/166/head
Aevann 2023-07-04 02:43:29 +03:00
parent 963223495c
commit 8c526576ad
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ def notif_comment(text):
def notif_comment2(p):
text = f"@{p.author_name} has mentioned you: [{p.title}]({p.shortlink})"
text = f"@{p.author_name} has mentioned you: [{p.title}](/post/{p.id})"
search_html = f'%</a> has mentioned you: <a href="/post/{p.id}/%'
search_html = f'%</a> has mentioned you: <a href="/post/{p.id}"%'
existing = g.db.query(Comment.id).filter(Comment.author_id == AUTOJANNY_ID, Comment.parent_post == None, Comment.body_html.like(search_html)).first()