mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
FIX: error when flagging to notify moderators because message title is too long
This commit is contained in:
@ -245,7 +245,7 @@ SQL
|
||||
title = I18n.t("post_action_types.#{post_action_type}.email_title", title: post.topic.title, locale: SiteSetting.default_locale)
|
||||
body = I18n.t("post_action_types.#{post_action_type}.email_body", message: opts[:message], link: "#{Discourse.base_url}#{post.url}", locale: SiteSetting.default_locale)
|
||||
warning = opts[:is_warning] if opts[:is_warning].present?
|
||||
title = title.truncate(255, separator: /\s/)
|
||||
title = title.truncate(SiteSetting.max_topic_title_length, separator: /\s/)
|
||||
|
||||
opts = {
|
||||
archetype: Archetype.private_message,
|
||||
|
Reference in New Issue
Block a user