feat: Add message content to mention email template (#2838)
This commit is contained in:
12
app/drops/message_drop.rb
Normal file
12
app/drops/message_drop.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class MessageDrop < BaseDrop
|
||||
include MessageFormatHelper
|
||||
|
||||
def sender_display_name
|
||||
@obj.sender.try(:display_name)
|
||||
end
|
||||
|
||||
def text_content
|
||||
content = @obj.try(:content)
|
||||
transform_user_mention_content content
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user