fix duplicated post mentions

pull/152/head
Aevann 2023-06-02 16:43:27 +03:00
parent ac2258cf47
commit 498f77bcff
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def notif_comment2(p):
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_submission == None, Comment.body_html.like(search_html)).first()