mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fix for emails with empty body
This commit is contained in:
parent
2319a824f8
commit
e0b9117f15
2 changed files with 4 additions and 2 deletions
|
@ -39,7 +39,7 @@ module Email
|
|||
end
|
||||
end
|
||||
|
||||
@message.parts[0].body = @message.parts[0].body.to_s.gsub!(/\[\/?email-indent\]/, '')
|
||||
@message.parts[0].body = @message.parts[0].body.to_s.gsub(/\[\/?email-indent\]/, '')
|
||||
|
||||
@message.text_part.content_type = 'text/plain; charset=UTF-8'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue