summaryrefslogtreecommitdiff
path: root/src/mod_pubsub.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-08-01 14:41:16 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-08-01 14:41:16 +0200
commit636d68e0a91ec2189723aba82fc8a69beb48d50a (patch)
treefd5133be2302b0394cd85324db80e1b3b3512092 /src/mod_pubsub.erl
parentUpdate spec from custom and allow modules dependencies (#1740) (diff)
Fix PEP node identity (#1717)
Diffstat (limited to 'src/mod_pubsub.erl')
-rw-r--r--src/mod_pubsub.erl12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 1a620cb6..ff2779ed 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -546,14 +546,7 @@ disco_identity(Host, Node, From) ->
case get_allowed_items_call(Host, Nidx, From, Type,
Options, Owners) of
{result, _} ->
- {result, [#identity{category = <<"pubsub">>,
- type = <<"pep">>},
- #identity{category = <<"pubsub">>,
- type = <<"leaf">>,
- name = case get_option(Options, title) of
- false -> <<>>;
- [Title] -> Title
- end}]};
+ {result, [#identity{category = <<"pubsub">>, type = <<"pep">>}]};
_ ->
{result, []}
end
@@ -586,8 +579,7 @@ disco_features(Host, Node, From) ->
Type, Options, Owners) of
{result, _} ->
{result,
- [?NS_PUBSUB |
- [feature(F) || F <- plugin_features(Host, <<"pep">>)]]};
+ [?NS_PUBSUB | [feature(F) || F <- plugin_features(Host, <<"pep">>)]]};
_ ->
{result, []}
end