24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

fix PEP broadcasting (thanks to Karim Gemayel)(EJAB-1411)

This commit is contained in:
Christophe Romain 2011-03-10 12:24:56 +01:00
parent afec527f5f
commit 38bf3bfc1c

View File

@ -3483,7 +3483,7 @@ broadcast({U, S, R}, Node, NodeId, Type, NodeOptions, Subscriptions, Stanza, SHI
%% set the from address on the notification to the bare JID of the account owner %% set the from address on the notification to the bare JID of the account owner
%% Also, add "replyto" if entity has presence subscription to the account owner %% Also, add "replyto" if entity has presence subscription to the account owner
%% See XEP-0163 1.1 section 4.3.1 %% See XEP-0163 1.1 section 4.3.1
Event = {pep_message, binary_to_list(Node)++"+notify"}, Event = {pep_message, << Node/binary, <<"+notify">>/binary >>},
Message = case get_option(NodeOptions, notification_type, headline) of Message = case get_option(NodeOptions, notification_type, headline) of
normal -> Stanza; normal -> Stanza;
MsgType -> add_message_type(Stanza, atom_to_list(MsgType)) MsgType -> add_message_type(Stanza, atom_to_list(MsgType))