bugfix ban reporter multiple with same ip

indiachan-spamvector
Thomas Lynch 3 years ago
parent bb7d9a99a3
commit 15bb7116b2
  1. 1
      models/forms/banposter.js

@ -72,6 +72,7 @@ module.exports = async (req, res, next) => {
});
ips = ips.concat(matches);
}
ips = ips.filter(n => n);
[...new Set(ips)].forEach(ip => {
bans.push({
'ip': ip,

Loading…
Cancel
Save