fix: check content disposition, for inline messages in mail (#7231)

This commit is contained in:
Tejaswini Chile
2023-06-05 20:28:32 +05:30
committed by GitHub
parent d03924b846
commit aae6081d73
15 changed files with 194 additions and 28 deletions

View File

@@ -70,6 +70,8 @@ class MailPresenter < SimpleDelegator
}
end
# check content disposition check
# if inline, upload to AWS and and take the URL
def attachments
# ref : https://github.com/gorails-screencasts/action-mailbox-action-text/blob/master/app/mailboxes/posts_mailbox.rb
mail.attachments.map do |attachment|