mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: custom flags not possible on very long topic titles
This commit is contained in:
@@ -174,6 +174,8 @@ class PostAction < ActiveRecord::Base
|
||||
title = I18n.t("post_action_types.#{post_action_type}.email_title", title: post.topic.title)
|
||||
body = I18n.t("post_action_types.#{post_action_type}.email_body", message: opts[:message], link: "#{Discourse.base_url}#{post.url}")
|
||||
|
||||
title = title.truncate(255, separator: /\s/)
|
||||
|
||||
opts = {
|
||||
archetype: Archetype.private_message,
|
||||
title: title,
|
||||
|
||||
Reference in New Issue
Block a user