Update autoblockPublishMiddleware.js
This commit is contained in:
parent
887a86e927
commit
079c9ef784
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ const autoblockPublishBodyMiddleware = (req, res, next) => {
|
||||||
let ip = (req.headers['x-forwarded-for'] || req.connection.remoteAddress).split(/,\s?/)[0];
|
let ip = (req.headers['x-forwarded-for'] || req.connection.remoteAddress).split(/,\s?/)[0];
|
||||||
const { channelName } = req.body;
|
const { channelName } = req.body;
|
||||||
|
|
||||||
if (channelName && publishingChannelWhitelist.indexOf(channelName) !== -1) {
|
if (channelName && publishingChannelWhitelist.indexOf(channelName.toLowerCase()) !== -1) {
|
||||||
delete ipCounts[ip];
|
delete ipCounts[ip];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue