diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-01-31 01:09:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-31 01:09:36 +0900 |
| commit | 7e3a8d56e614a1771015b6b2557fea8127c46aeb (patch) | |
| tree | 0fddc05e8679e8df2d8a6d052e89cff7d8ad0b57 /src/server/api | |
| parent | Create type definition for '*/package.json' (#4014) (diff) | |
| download | sharkey-7e3a8d56e614a1771015b6b2557fea8127c46aeb.tar.gz sharkey-7e3a8d56e614a1771015b6b2557fea8127c46aeb.tar.bz2 sharkey-7e3a8d56e614a1771015b6b2557fea8127c46aeb.zip | |
Update index.ts
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/mastodon/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/api/mastodon/index.ts b/src/server/api/mastodon/index.ts index 881df60cdd..385f6ffd76 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: { |