Skip to content

Commit

Permalink
Fix for resizing images embedded in e-mails.
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed May 19, 2011
1 parent 4ad16b0 commit 11e56cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/mod_emailer/support/mod_emailer_embed.erl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ rsc_media_check(File, Context) ->
MimeOriginal = z_convert:to_list(proplists:get_value(mime, Media)),
Props = [
{id, proplists:get_value(id, Media)},
{mime_original, MimeOriginal}
{mime_original, MimeOriginal},
{is_media_preview, IsResized}
],
Props1 = case IsResized of
true -> [ {mime, z_media_identify:guess_mime(File)} | Props ];
Expand Down

0 comments on commit 11e56cc

Please sign in to comment.