2
0
Fork 0
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:
Neil Lalonde 2013-07-24 15:07:43 -04:00
parent 2319a824f8
commit e0b9117f15
2 changed files with 4 additions and 2 deletions

View file

@ -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'