Bug requesting non-existent data with private_get command (#1690)

This commit is contained in:
Badlop 2017-04-26 23:14:30 +02:00
parent 9b8364b6c8
commit d18d99e8ec
1 changed files with 1 additions and 1 deletions

View File

@ -1363,7 +1363,7 @@ get_last(User, Server) ->
%% <aa xmlns='bb'>Cluth</aa>
private_get(Username, Host, Element, Ns) ->
ElementXml = [{Ns, #xmlel{name = Element, attrs = [{<<"xmlns">>, Ns}]}}],
ElementXml = #xmlel{name = Element, attrs = [{<<"xmlns">>, Ns}]},
Els = mod_private:get_data(jid:nodeprep(Username), jid:nameprep(Host),
[{Ns, ElementXml}]),
binary_to_list(fxml:element_to_binary(xmpp:encode(#private{xml_els = Els}))).