diff options
-rw-r--r-- | src/mod_pubsub.erl | 7 |
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 |