mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-19 15:32:08 +02:00
mod_http_upload: Fix string()/binary() type issue
This commit is contained in:
parent
3e7ee6af6d
commit
62ea763089
@ -888,7 +888,7 @@ convert(Path, #media_info{type = T, width = W, height = H}) ->
|
|||||||
-spec thumb_el(string(), binary()) -> xmlel().
|
-spec thumb_el(string(), binary()) -> xmlel().
|
||||||
|
|
||||||
thumb_el(Path, URI) ->
|
thumb_el(Path, URI) ->
|
||||||
ContentType = guess_content_type(Path),
|
ContentType = guess_content_type(list_to_binary(Path)),
|
||||||
case identify(Path) of
|
case identify(Path) of
|
||||||
{ok, #media_info{height = H, width = W}} ->
|
{ok, #media_info{height = H, width = W}} ->
|
||||||
#xmlel{name = <<"thumbnail">>,
|
#xmlel{name = <<"thumbnail">>,
|
||||||
|
Loading…
Reference in New Issue
Block a user