From d69b9199615c2a4df536a60fc8d79dcb66f4a665 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 dd682fe4d7..d613a3aa5f 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; }