From: Badlop Date: Mon, 16 Apr 2012 10:25:07 +0000 (+0200) Subject: Photos from LDAP not displayed in some clients, lacking TYPE (thanks to Alex Crycheck... X-Git-Tag: v2.1.11~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a09d671ab2079294dbeb54d55eb9e1ae36cb5fd;p=ejabberd Photos from LDAP not displayed in some clients, lacking TYPE (thanks to Alex Crycheck)(EJAB-1554) --- diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl index 1d6f1202a..26a6f58c6 100644 --- a/src/mod_vcard_ldap.erl +++ b/src/mod_vcard_ldap.erl @@ -352,6 +352,7 @@ ldap_attribute_to_vcard(vCard, {"email", Value}) -> ldap_attribute_to_vcard(vCard, {"photo", Value}) -> {xmlelement,"PHOTO",[],[ + {xmlelement,"TYPE",[],[{xmlcdata,"image/jpeg"}]}, {xmlelement,"BINVAL",[],[{xmlcdata, jlib:encode_base64(Value)}]}]}; ldap_attribute_to_vcard(vCardN, {"family", Value}) ->