We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27c361c commit ece57b5Copy full SHA for ece57b5
src/controllers/hitokoto.js
@@ -63,7 +63,7 @@ async function hitokoto (ctx, next) {
63
categroy = categroy[Math.floor(Math.random() * categroy.length)]
64
}
65
66
- if (!Hitokoto.categroy[ctx.query.c]) {
+ if (!Hitokoto.categroy[categroy]) {
67
ctx.status = 404
68
ctx.body = {
69
status: 404,
0 commit comments