mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 15:28:52 -05:00
Fix links to attachments (Thanks Ben!)
This commit is contained in:
parent
428e7cdf1e
commit
e5c8ef9b08
@ -53,7 +53,7 @@ class MailCatcher::Web < Sinatra::Base
|
|||||||
("plain" if MailCatcher::Mail.message_has_plain? id),
|
("plain" if MailCatcher::Mail.message_has_plain? id),
|
||||||
].compact,
|
].compact,
|
||||||
"attachments" => MailCatcher::Mail.message_attachments(id).map do |attachment|
|
"attachments" => MailCatcher::Mail.message_attachments(id).map do |attachment|
|
||||||
attachment.merge({"href" => "/messages/#{escape(id)}/#{escape(attachment['cid'])}"})
|
attachment.merge({"href" => "/messages/#{escape(id)}/parts/#{escape(attachment['cid'])}"})
|
||||||
end,
|
end,
|
||||||
}).to_json
|
}).to_json
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user