diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 90dc1b662..91ac0eb59 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -101,7 +101,7 @@ def notif_comment2(p): else: author_link = f'@{p.author_name}' - text = f'{author_link} has mentioned you: {p.title_html}' + text = f'@{p.author_name} has mentioned you: {p.title}' search_html = f'% has mentioned you: /h/{p.hole}" - return create_comment(text), text + text_html = f'{author_link} has mentioned you: {p.title_html}' + if p.hole: text_html += f" in /h/{p.hole}" + return create_comment(text_html), text def add_notif(cid, uid, text, pushnotif_url=''):