From e57d481274502147cfde5ab5f045b1e1f68dd539 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Thu, 9 Feb 2023 18:35:17 +0100 Subject: [PATCH] cleanup --- plugins/messages/app/controllers/messages_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/messages/app/controllers/messages_controller.rb b/plugins/messages/app/controllers/messages_controller.rb index 7807b67f..159984ed 100644 --- a/plugins/messages/app/controllers/messages_controller.rb +++ b/plugins/messages/app/controllers/messages_controller.rb @@ -22,11 +22,9 @@ class MessagesController < ApplicationController @message.subject = I18n.t('messages.model.reply_subject', :subject => original_message.subject) @message.body = I18n.t('messages.model.reply_header', :user => original_message.sender.display, :when => I18n.l(original_message.created_at, :format => :short)) + "\n" \ + "
" + original_message.body.to_trix_html + "
" - - # .each_line { |l| @message.body += I18n.t('messages.model.reply_indent', :line => l) } else redirect_to new_message_url, alert: I18n.t('messages.new.error_private') - end + end end end