mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Feature flags feature (#2803)
This commit is contained in:
parent
99fec6da8e
commit
a26fdd8aa9
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