mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Photos from LDAP not displayed in some clients, lacking TYPE (thanks to Alex Crycheck)(EJAB-1554)
This commit is contained in:
parent
58d49d2867
commit
5a09d671ab
@ -352,6 +352,7 @@ ldap_attribute_to_vcard(vCard, {"email", Value}) ->
|
|||||||
|
|
||||||
ldap_attribute_to_vcard(vCard, {"photo", Value}) ->
|
ldap_attribute_to_vcard(vCard, {"photo", Value}) ->
|
||||||
{xmlelement,"PHOTO",[],[
|
{xmlelement,"PHOTO",[],[
|
||||||
|
{xmlelement,"TYPE",[],[{xmlcdata,"image/jpeg"}]},
|
||||||
{xmlelement,"BINVAL",[],[{xmlcdata, jlib:encode_base64(Value)}]}]};
|
{xmlelement,"BINVAL",[],[{xmlcdata, jlib:encode_base64(Value)}]}]};
|
||||||
|
|
||||||
ldap_attribute_to_vcard(vCardN, {"family", Value}) ->
|
ldap_attribute_to_vcard(vCardN, {"family", Value}) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user