diff --git a/server.ts b/server.ts index 69f7a05..e3605eb 100644 --- a/server.ts +++ b/server.ts @@ -27,9 +27,12 @@ router.get("/:path", async (ctx: ctx) => { }); router.get("/:user/:kind.atom", async (ctx: ctx) => { - const { user } = ctx.params; + const { user, kind } = ctx.params; - if (user.startsWith("@") || user.startsWith("~") || kind === "articles") { + if ( + kind === "articles" && + (user.startsWith("@") || user.startsWith("~")) + ) { await userAtomFeedHandler(ctx); } else { ctx.response.status = 404;