From c4bb9869a079bd2db1c05bb8e34da8fd45920638 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 4 May 2018 18:02:09 +0900 Subject: [PATCH] oops --- src/server/file/send-drive-file.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/file/send-drive-file.ts b/src/server/file/send-drive-file.ts index dd682fe4d..d613a3aa5 100644 --- a/src/server/file/send-drive-file.ts +++ b/src/server/file/send-drive-file.ts @@ -27,16 +27,16 @@ export default async function(ctx: Koa.Context) { if (file == null) { ctx.status = 404; - await send(ctx, `${__dirname}/assets/dummy.png`, { root: assets }); + await send(ctx, '/dummy.png', { root: assets }); return; } if (file.metadata.deletedAt) { ctx.status = 410; if (file.metadata.isExpired) { - await send(ctx, `${__dirname}/assets/cache-expired.png`, { root: assets }); + await send(ctx, '/cache-expired.png', { root: assets }); } else { - await send(ctx, `${__dirname}/assets/tombstone.png`, { root: assets }); + await send(ctx, '/tombstone.png', { root: assets }); } return; }