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,