summaryrefslogtreecommitdiff
path: root/src/mod_pubsub.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-08-03 15:48:23 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-08-03 15:48:23 +0200
commit06450f4a824c2d7bd66f208901cdc652881a9185 (patch)
tree54627cfd34dff8367bd8e1d3fd24ccfea9d53f0a /src/mod_pubsub.erl
parentMove pubsub sql export to pubsub_db_sql module (diff)
Keep disco#info on PEP compatible with XEP-0060 (#1717)
Diffstat (limited to 'src/mod_pubsub.erl')
-rw-r--r--src/mod_pubsub.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 630882b1..d682eb5f 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -546,7 +546,12 @@ disco_identity(Host, Node, From) ->
case get_allowed_items_call(Host, Nidx, From, Type,
Options, Owners) of
{result, _} ->
- {result, [#identity{category = <<"pubsub">>, type = <<"pep">>}]};
+ {result, [#identity{category = <<"pubsub">>, type = <<"pep">>},
+ #identity{category = <<"pubsub">>, type = <<"leaf">>,
+ name = case get_option(Options, title) of
+ false -> <<>>;
+ Title -> Title
+ end}]};
_ ->
{result, []}
end