A platform for community discussion. Free, open, simple.
Fix modifying frozen strings error.
Guo Xiang Tand369b84ced37
diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rbindex 9bd1e16901d..12e06cd059b 100644--- a/app/mailers/user_notifications.rb+++ b/app/mailers/user_notifications.rb@@ -543,7 +543,7 @@ class UserNotifications < ActionMailer::Basetitle = I18n.t("system_messages.private_topic_title", id: post.topic_id)end- context = ""+ context = +""tu = TopicUser.get(post.topic_id, user)context_posts = self.class.get_context_posts(post, tu, user)diff --git a/app/models/topic_embed.rb b/app/models/topic_embed.rbindex bf551fe63e6..f7b46b711f1 100644--- a/app/models/topic_embed.rb+++ b/app/models/topic_embed.rb@@ -36,7 +36,7 @@ class TopicEmbed < ActiveRecord::Baseif SiteSetting.embed_truncatecontents = first_paragraph_from(contents)end- contents ||= ''+ contents ||= +''contents << imported_from_html(url)url = normalize_url(url)