From be82d845a4f03477a7520bdb25c5484e12550e41 Mon Sep 17 00:00:00 2001 From: Hakaba Hitoyo Date: Sun, 14 Oct 2018 16:54:09 +0900 Subject: [PATCH] expose user recommendation config in /api/meta (#2902) --- src/server/api/endpoints/meta.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index 152559337d..ecd5817581 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -55,7 +55,8 @@ export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => recaptcha: config.recaptcha ? true : false, objectStorage: config.drive && config.drive.storage === 'minio', twitter: config.twitter ? true : false, - serviceWorker: config.sw ? true : false + serviceWorker: config.sw ? true : false, + userRecommendation: config.user_recommendation ? config.user_recommendation : {} } }); });