From c92cd75f88f5ff6690ff96af977602ac1dc77634 Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 29 Oct 2018 15:54:02 -0500 Subject: [PATCH] Minor cleanup --- server/middleware/autoblockPublishMiddleware.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/middleware/autoblockPublishMiddleware.js b/server/middleware/autoblockPublishMiddleware.js index 6810ebfb..9aec7f37 100644 --- a/server/middleware/autoblockPublishMiddleware.js +++ b/server/middleware/autoblockPublishMiddleware.js @@ -54,15 +54,11 @@ const autoblockPublishMiddleware = (req, res, next) => { } const autoblockPublishBodyMiddleware = (req, res, next) => { - console.log('REQUEST BODY', req.body) if(req.body && publishingChannelWhitelist) { let ip = (req.headers['x-forwarded-for'] || req.connection.remoteAddress).split(/,\s?/)[0]; - const { channelName } = req.body; - console.log(channelName, publishingChannelWhitelist.indexOf(channelName) !== -1) if(channelName && publishingChannelWhitelist.indexOf(channelName) !== -1) { - console.log('whitelisted channelName') delete ipCounts[ip]; } }