diff options
Diffstat (limited to 'src/mod_pubsub/mod_pubsub.erl')
-rw-r--r-- | src/mod_pubsub/mod_pubsub.erl | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 70d2bac50..55fb0a208 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -3043,24 +3043,6 @@ get_options_for_subs(NodeID, Subs) -> Acc end, [], Subs). -% TODO: merge broadcast code that way -%broadcast(Host, Node, NodeId, Type, NodeOptions, Feature, Force, ElName, SubEls) -> -% case (get_option(NodeOptions, Feature) or Force) of -% true -> -% case node_action(Host, Type, get_node_subscriptions, [NodeId]) of -% {result, []} -> -% {result, false}; -% {result, Subs} -> -% Stanza = event_stanza([{xmlelement, ElName, nodeAttr(Node), SubEls}]), -% broadcast_stanza(Host, Node, Type, NodeOptions, SubOpts, Stanza), -% {result, true}; -% _ -> -% {result, false} -% end; -% _ -> -% {result, false} -% end - broadcast_stanza(Host, Node, _NodeId, _Type, NodeOptions, SubsByDepth, NotifyType, BaseStanza, SHIM) -> NotificationType = get_option(NodeOptions, notification_type, headline), BroadcastAll = get_option(NodeOptions, broadcast_all_resources), %% XXX this is not standard, but usefull |