better config handling

This commit is contained in:
Hakaba Hitoyo 2018-10-06 17:19:41 +09:00
parent 04650464f3
commit 2e39106c4b

View File

@ -17,9 +17,7 @@ export const meta = {
}; };
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => { export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
var external = config.user_recommendation.external if (config.user_recommendation && config.user_recommendation.external) {
if (external) {
var userName = me.username var userName = me.username
var hostName = config.hostname var hostName = config.hostname
var limit = params.limit var limit = params.limit