diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-07 12:30:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-07 12:30:56 +0900 |
| commit | 5675ecead90e5aad9238c40074e9fc2450272437 (patch) | |
| tree | 3d82267262a904258e61006fd9bfe592821deab8 | |
| parent | インスタンスの対象言語の設定を実装 (diff) | |
| download | misskey-5675ecead90e5aad9238c40074e9fc2450272437.tar.gz misskey-5675ecead90e5aad9238c40074e9fc2450272437.tar.bz2 misskey-5675ecead90e5aad9238c40074e9fc2450272437.zip | |
Fix
| -rw-r--r-- | src/config/types.ts | 1 | ||||
| -rw-r--r-- | src/server/api/mastodon/index.ts | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/config/types.ts b/src/config/types.ts index fb7d652ef1..98fa2660f4 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -4,7 +4,6 @@ export type Source = { repository_url?: string; feedback_url?: string; - languages?: string[]; url: string; port: number; https?: { [x: string]: string }; diff --git a/src/server/api/mastodon/index.ts b/src/server/api/mastodon/index.ts index 0e9203aa5a..bdd1fdf0f1 100644 --- a/src/server/api/mastodon/index.ts +++ b/src/server/api/mastodon/index.ts @@ -60,7 +60,7 @@ router.get('/v1/instance', async ctx => { // TODO: This is a temporary implement status_count: originalNotesCount, domain_count: domains.length }, - languages: config.languages || [ 'ja' ], + languages: meta.langs || [ 'ja' ], contact_account: { id: maintainer._id, username: maintainer.username, |