Skip to content

Commit 9e985e3

Browse files
committed
mod_push: Apply cosmetic changes
1 parent 72661ac commit 9e985e3

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/mod_push.erl

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -527,17 +527,18 @@ notify(LServer, PushLJID, Node, XData, Pkt0, Dir, HandleResponse) ->
527527
PubSub = #pubsub{publish = #ps_publish{node = Node, items = [Item]},
528528
publish_options = XData},
529529
IQ0 = #iq{type = set,
530-
from = From,
531-
to = jid:make(PushLJID),
532-
id = p1_rand:get_string(),
533-
sub_els = [PubSub]},
534-
case ejabberd_hooks:run_fold(push_send_notification, LServer, IQ0, [Pkt]) of
530+
from = From,
531+
to = jid:make(PushLJID),
532+
id = p1_rand:get_string(),
533+
sub_els = [PubSub]},
534+
case ejabberd_hooks:run_fold(push_send_notification,
535+
LServer, IQ0, [Pkt]) of
535536
drop ->
536-
?DEBUG("No push notification will be sent: some hook dropped it", []),
537-
ok;
538-
IQ ->
539-
?DEBUG("Push notification hooks built the definitive IQ to route: ~n~ts", [xmpp:pp(IQ)]),
540-
ejabberd_router:route_iq(IQ, HandleResponse)
537+
?DEBUG("Notification dropped by hook", []),
538+
ok;
539+
IQ ->
540+
?DEBUG("Sending notification: ~n~ts", [xmpp:pp(IQ)]),
541+
ejabberd_router:route_iq(IQ, HandleResponse)
541542
end
542543
end.
543544

0 commit comments

Comments
 (0)