25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Default pubsub messages to headline if nothing is configured (thanks to Brian Cully) (EJAB-1061)

SVN Revision: 2654
This commit is contained in:
Christophe Romain 2009-10-12 09:05:26 +00:00
parent 3e9e967429
commit 25523371fc
3 changed files with 4 additions and 4 deletions

View File

@ -3038,7 +3038,7 @@ get_options_for_subs(NodeID, Subs) ->
% end
broadcast_stanza(Host, Node, _NodeId, _Type, NodeOptions, SubsByDepth, NotifyType, BaseStanza) ->
NotificationType = get_option(NodeOptions, notification_type),
NotificationType = get_option(NodeOptions, notification_type, headline),
BroadcastAll = get_option(NodeOptions, broadcast_all_resources), %% XXX this is not standard, but usefull
From = service_jid(Host),
Stanza = case NotificationType of

View File

@ -2868,7 +2868,7 @@ get_options_for_subs(NodeID, Subs) ->
% end
broadcast_stanza(Host, Node, _NodeId, _Type, NodeOptions, SubsByDepth, NotifyType, BaseStanza) ->
NotificationType = get_option(NodeOptions, notification_type),
NotificationType = get_option(NodeOptions, notification_type, headline),
BroadcastAll = get_option(NodeOptions, broadcast_all_resources), %% XXX this is not standard, but usefull
From = service_jid(Host),
Stanza = case NotificationType of

View File

@ -1,5 +1,5 @@
--- mod_pubsub.erl 2009-10-06 17:17:31.000000000 +0200
+++ mod_pubsub_odbc.erl 2009-10-06 17:18:05.000000000 +0200
--- mod_pubsub.erl 2009-10-12 11:03:50.000000000 +0200
+++ mod_pubsub_odbc.erl 2009-10-12 11:04:09.000000000 +0200
@@ -45,7 +45,7 @@
%%% TODO
%%% plugin: generate Reply (do not use broadcast atom anymore)