mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: invalid html in notification emails when template has been customized
This commit is contained in:
@@ -252,12 +252,10 @@ class UserNotifications < ActionMailer::Base
|
||||
end
|
||||
|
||||
def email_post_markdown(post, add_posted_by=false)
|
||||
result = "[email-indent]\n"
|
||||
result << "#{post.raw}\n\n"
|
||||
result = "#{post.raw}\n\n"
|
||||
if add_posted_by
|
||||
result << "#{I18n.t('user_notifications.posted_by', username: post.username, post_date: post.created_at.strftime("%m/%d/%Y"))}\n\n"
|
||||
end
|
||||
result << "[/email-indent]\n"
|
||||
result
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user