405 :(
This commit is contained in:
parent
0839a574d7
commit
cf1606884a
@ -102,6 +102,12 @@ export default router => {
|
|||||||
const tagname = decodeURIComponent(req.params.tagname);
|
const tagname = decodeURIComponent(req.params.tagname);
|
||||||
const newtag = req.post.newtag;
|
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 = (
|
const tmptag = (
|
||||||
await sql('tags')
|
await sql('tags')
|
||||||
.where('tag', tagname)
|
.where('tag', tagname)
|
||||||
|
Loading…
Reference in New Issue
Block a user