Commit c7425b7ec662cb8573d89653f43f6a7a94aa77cf
1 parent
1fc809c905
Exists in
master
Multilne
Showing 1 changed file with 10 additions and 2 deletions Side-by-side Diff
lib/http-listener.js
... | ... | @@ -69,8 +69,16 @@ function mainHandler(req, res) { |
69 | 69 | ( req.body.is_outgoing || req.query.is_outgoing ) ? messagesArchive.DIRECTION_OUTGOING : messagesArchive.DIRECTION_INCOMING |
70 | 70 | ); |
71 | 71 | |
72 | - if (req.body.do_not_forward_to_core || req.query.do_not_forward_to_core || req.body.is_outgoing || req.query.is_outgoing) { | |
73 | - logger.verbose('Ignoring message', { from: req.body.from || req.query.from, msg: req.body.msg || req.query.msg, do_not_forward_to_core: req.body.do_not_forward_to_core || req.query.do_not_forward_to_core }); | |
72 | + if ( | |
73 | + req.body.do_not_forward_to_core || req.query.do_not_forward_to_core | |
74 | + || req.body.is_outgoing || req.query.is_outgoing | |
75 | + ) { | |
76 | + logger.verbose( 'Ignoring message', { | |
77 | + from: req.body.from || req.query.from, | |
78 | + msg: req.body.msg || req.query.msg, | |
79 | + do_not_forward_to_core: req.body.do_not_forward_to_core || req.query.do_not_forward_to_core | |
80 | + }); | |
81 | + | |
74 | 82 | res.end('OK'); |
75 | 83 | return; |
76 | 84 | } |