mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
Fix modifying frozen strings error.
This commit is contained in:
@ -543,7 +543,7 @@ class UserNotifications < ActionMailer::Base
|
|||||||
title = I18n.t("system_messages.private_topic_title", id: post.topic_id)
|
title = I18n.t("system_messages.private_topic_title", id: post.topic_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
context = ""
|
context = +""
|
||||||
tu = TopicUser.get(post.topic_id, user)
|
tu = TopicUser.get(post.topic_id, user)
|
||||||
context_posts = self.class.get_context_posts(post, tu, user)
|
context_posts = self.class.get_context_posts(post, tu, user)
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ class TopicEmbed < ActiveRecord::Base
|
|||||||
if SiteSetting.embed_truncate
|
if SiteSetting.embed_truncate
|
||||||
contents = first_paragraph_from(contents)
|
contents = first_paragraph_from(contents)
|
||||||
end
|
end
|
||||||
contents ||= ''
|
contents ||= +''
|
||||||
contents << imported_from_html(url)
|
contents << imported_from_html(url)
|
||||||
|
|
||||||
url = normalize_url(url)
|
url = normalize_url(url)
|
||||||
|
Reference in New Issue
Block a user