fix(comments mention): Fix ascii issue in comments mention (#6742)
This commit is contained in:
parent
22b1987dfa
commit
f970a9fd61
2 changed files with 5 additions and 3 deletions
|
|
@ -96,15 +96,17 @@ def notify_mentions(doc):
|
|||
|
||||
recipients = [frappe.db.get_value("User", {"enabled": 1, "name": name, "user_type": "System User"}, "email")
|
||||
for name in mentions]
|
||||
link = get_link_to_form(doc.reference_doctype, doc.reference_name, label=parent_doc_label)
|
||||
|
||||
frappe.sendmail(
|
||||
recipients=recipients,
|
||||
sender=frappe.session.user,
|
||||
subject=subject,
|
||||
template="mentioned_in_comment",
|
||||
args={
|
||||
"sender_fullname": sender_fullname,
|
||||
"body_content": _("{0} mentioned you in a comment in {1}").format(sender_fullname, link),
|
||||
"comment": doc,
|
||||
"link": get_link_to_form(doc.reference_doctype, doc.reference_name, label=parent_doc_label)
|
||||
"link": link
|
||||
},
|
||||
header=[_('New Mention'), 'orange']
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<p>
|
||||
{{ _("{0} mentioned you in a comment in {1}").format(sender_fullname, link) }}
|
||||
{{ body_content }}
|
||||
</p>
|
||||
<blockquote
|
||||
style="border-left: 3px solid #d1d8dd; padding: 7px 15px; margin-left: 0px;">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue