mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: use RFC-compliant previous replies separator
This commit is contained in:
parent
3bf931ce54
commit
86819f08c3
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ class UserNotifications < ActionMailer::Base
|
||||||
context_posts = context_posts.to_a
|
context_posts = context_posts.to_a
|
||||||
|
|
||||||
if context_posts.present?
|
if context_posts.present?
|
||||||
context << "---\n*#{I18n.t('user_notifications.previous_discussion')}*\n"
|
context << "-- \n*#{I18n.t('user_notifications.previous_discussion')}*\n"
|
||||||
context_posts.each do |cp|
|
context_posts.each do |cp|
|
||||||
context << email_post_markdown(cp)
|
context << email_post_markdown(cp)
|
||||||
end
|
end
|
||||||
|
|
|
@ -143,7 +143,7 @@ module Email
|
||||||
end
|
end
|
||||||
|
|
||||||
def previous_replies_regex
|
def previous_replies_regex
|
||||||
@previous_replies_regex ||= /^---\n\*#{I18n.t("user_notifications.previous_discussion")}\*\n/im
|
@previous_replies_regex ||= /^--[- ]\n\*#{I18n.t("user_notifications.previous_discussion")}\*\n/im
|
||||||
end
|
end
|
||||||
|
|
||||||
def trim_discourse_markers(reply)
|
def trim_discourse_markers(reply)
|
||||||
|
|
Loading…
Reference in a new issue