diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-17 17:13:34 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-05-17 17:13:34 +0300 |
commit | 1925b94131a5fa5de8d718ae81d86dcca2ae653f (patch) | |
tree | 820124866d9e4bb4592eacb7441635269b88a4cb /src/mod_vcard_ldap.erl | |
parent | Add cache options to the validator (diff) |
Implement cache for mod_vcard and mod_vcard_xupdate
Diffstat (limited to 'src/mod_vcard_ldap.erl')
-rw-r--r-- | src/mod_vcard_ldap.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl index fe11d096..6a690779 100644 --- a/src/mod_vcard_ldap.erl +++ b/src/mod_vcard_ldap.erl @@ -97,9 +97,9 @@ get_vcard(LUser, LServer) -> #eldap_entry{attributes = Attributes} -> VCard = ldap_attributes_to_vcard(Attributes, VCardMap, {LUser, LServer}), - [xmpp:encode(VCard)]; + {ok, [xmpp:encode(VCard)]}; _ -> - [] + {ok, []} end. set_vcard(_LUser, _LServer, _VCard, _VCardSearch) -> |