mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 02:46:43 -06:00
better config handling
This commit is contained in:
parent
04650464f3
commit
2e39106c4b
1 changed files with 1 additions and 3 deletions
|
@ -17,9 +17,7 @@ export const meta = {
|
|||
};
|
||||
|
||||
export default (params: any, me: ILocalUser) => new Promise(async (res, rej) => {
|
||||
var external = config.user_recommendation.external
|
||||
|
||||
if (external) {
|
||||
if (config.user_recommendation && config.user_recommendation.external) {
|
||||
var userName = me.username
|
||||
var hostName = config.hostname
|
||||
var limit = params.limit
|
||||
|
|
Loading…
Reference in a new issue