mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 03:28:29 +01:00
Feature flags feature (#2803)
This commit is contained in:
parent
e813880392
commit
ed6450244d
1 changed files with 10 additions and 1 deletions
|
@ -39,6 +39,15 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
|
|||
recaptchaSitekey: config.recaptcha ? config.recaptcha.site_key : null,
|
||||
swPublickey: config.sw ? config.sw.public_key : null,
|
||||
hidedTags: (me && me.isAdmin) ? meta.hidedTags : undefined,
|
||||
bannerUrl: meta.bannerUrl
|
||||
bannerUrl: meta.bannerUrl,
|
||||
features: {
|
||||
registration: !meta.disableRegistration,
|
||||
localTimeLine: !meta.disableLocalTimeline,
|
||||
elasticsearch: config.elasticsearch ? true : false,
|
||||
recaptcha: config.recaptcha ? true : false,
|
||||
objectStorage: config.drive && config.drive.storage === 'minio',
|
||||
twitter: config.twitter ? true : false,
|
||||
serviceWorker: config.sw ? true : false
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue