[pl] jebać narodowców

This commit is contained in:
Avris 2021-08-07 00:00:42 +02:00
parent 38c1fa33f8
commit 0763157fdf
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
const overloadPeriods = { const overloadPeriods = {
// en: [[15, 24]], // en: [[15, 24]],
pl: [[0, 24]], // pl: [[0, 24]],
}; };
module.exports = (locale, timestamp = new Date) => { module.exports = (locale, timestamp = new Date) => {

View File

@ -185,6 +185,11 @@ const router = Router();
router.use(handleErrorAsync(reloadUser)); router.use(handleErrorAsync(reloadUser));
router.post('/user/init', handleErrorAsync(async (req, res) => { router.post('/user/init', handleErrorAsync(async (req, res) => {
if (req.body.usernameOrEmail && req.body.usernameOrEmail.includes('narodowcy.net')) {
req.socket.end();
return;
}
let user = undefined; let user = undefined;
let usernameOrEmail = req.body.usernameOrEmail; let usernameOrEmail = req.body.usernameOrEmail;