A platform for community discussion. Free, open, simple.
Fix modifying frozen strings error take 2.
Guo Xiang Tanb584e30902b4
diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rbindex 12e06cd059b..bc182849d5e 100644--- a/app/mailers/user_notifications.rb+++ b/app/mailers/user_notifications.rb@@ -360,7 +360,7 @@ class UserNotifications < ActionMailer::Baseenddef email_post_markdown(post, add_posted_by = false)- result = "#{post.raw}\n\n"+ result = +"#{post.raw}\n\n"if add_posted_byresult << "#{I18n.t('user_notifications.posted_by', username: post.username, post_date: post.created_at.strftime("%m/%d/%Y"))}\n\n"end@@ -551,7 +551,7 @@ class UserNotifications < ActionMailer::Basecontext_posts = context_posts.to_aif 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 << email_post_markdown(cp, true)end