aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-10-26 10:29:23 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-10-26 10:29:23 +0300
commit2161063e5e539d709b2ed91cdbf75576fc3ca545 (patch)
tree1f45e3d5039a993d833d4454ae5a0f7fb4ceec56
parentMake it possible to convert to SQL for any current db_type (diff)
Don't forget to convert ljid() to jid()
-rw-r--r--src/mod_pubsub.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 913c76f93..494ff066d 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -944,8 +944,8 @@ node_disco_info(Host, Node, _From, _Identity, _Features) ->
end,
Meta = [{title, get_option(Options, title, <<>>)},
{description, get_option(Options, description, <<>>)},
- {owner, [LJID || {LJID, Aff} <- Affs, Aff =:= owner]},
- {publisher, [LJID || {LJID, Aff} <- Affs, Aff =:= publisher]},
+ {owner, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= owner]},
+ {publisher, [jid:make(LJID) || {LJID, Aff} <- Affs, Aff =:= publisher]},
{num_subscribers, length([LJID || {LJID, Aff} <- Affs, Aff =:= subscriber])}],
XData = #xdata{type = result,
fields = pubsub_meta_data:encode(Meta)},