From 7e3a8d56e614a1771015b6b2557fea8127c46aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Thu, 31 Jan 2019 01:09:36 +0900 Subject: [PATCH] Update index.ts --- src/server/api/mastodon/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/api/mastodon/index.ts b/src/server/api/mastodon/index.ts index 881df60cd..385f6ffd7 100644 --- a/src/server/api/mastodon/index.ts +++ b/src/server/api/mastodon/index.ts @@ -6,6 +6,7 @@ import { ObjectID } from 'bson'; import Emoji from '../../../models/emoji'; import { toMastodonEmojis } from './emoji'; import fetchMeta from '../../../misc/fetch-meta'; +import * as pkg from '../../package.json'; // Init router const router = new Router(); @@ -48,7 +49,7 @@ router.get('/v1/instance', async ctx => { // TODO: This is a temporary implement title: meta.name || 'Misskey', description: meta.description || '', email: meta.maintainer.email, - version: `0.0.0 (compatible; Misskey)`, // TODO: commit hash + version: `0.0.0 (compatible; Misskey ${pkg.version})`, // TODO: commit hash thumbnail: meta.bannerUrl, /* urls: {