Compare commits

...

2 Commits
2.1.3 ... 2.1.4

Author SHA1 Message Date
e37c19fdcd 2.1.4 2018-05-04 18:02:17 +09:00
d69b919961 oops 2018-05-04 18:02:09 +09:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "2.1.3",
"version": "2.1.4",
"clientVersion": "1.0.5193",
"codename": "nighthike",
"main": "./built/index.js",

View File

@ -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;
}