expose user recommendation config in /api/meta (#2902)

This commit is contained in:
Hakaba Hitoyo 2018-10-14 16:54:09 +09:00 committed by syuilo
parent f49ccd0cd3
commit be82d845a4

View file

@ -55,7 +55,8 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) =>
recaptcha: config.recaptcha ? true : false, recaptcha: config.recaptcha ? true : false,
objectStorage: config.drive && config.drive.storage === 'minio', objectStorage: config.drive && config.drive.storage === 'minio',
twitter: config.twitter ? true : false, twitter: config.twitter ? true : false,
serviceWorker: config.sw ? true : false serviceWorker: config.sw ? true : false,
userRecommendation: config.user_recommendation ? config.user_recommendation : {}
} }
}); });
}); });