This commit is contained in:
Flummi 2022-03-28 16:34:45 +02:00
parent 0839a574d7
commit cf1606884a

View File

@ -102,6 +102,12 @@ export default router => {
const tagname = decodeURIComponent(req.params.tagname);
const newtag = req.post.newtag;
if(['sfw', 'nsfw'].includes(tagname) || ['sfw', 'nsfw'].includes(newtag)) {
return res.json({
msg: 'f0ck you'
}, 405); // method not allowed
}
const tmptag = (
await sql('tags')
.where('tag', tagname)