mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Fix problem with get_vcard command (#1447)
This commit is contained in:
parent
a910ab8171
commit
9605e2b2a4
@ -1098,8 +1098,8 @@ set_vcard(User, Host, Name, Subname, SomeContent) ->
|
||||
|
||||
get_vcard_content(User, Server, Data) ->
|
||||
case mod_vcard:get_vcard(jid:nodeprep(User), jid:nameprep(Server)) of
|
||||
[_|_] = Els ->
|
||||
case get_vcard(Data, Els) of
|
||||
[El|_] ->
|
||||
case get_vcard(Data, El) of
|
||||
[false] -> throw(error_no_value_found_in_vcard);
|
||||
ElemList -> ?DEBUG("ELS ~p", [ElemList]), [fxml:get_tag_cdata(Elem) || Elem <- ElemList]
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user