From aa7c0e33390d5bb043f6655c10f791c942ee2ed7 Mon Sep 17 00:00:00 2001 From: Michal Orlik Date: Tue, 3 Apr 2018 21:22:15 +0200 Subject: [PATCH] lib/api: wait for channelId before follow check --- libs/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/api.js b/libs/api.js index 1ac669c5757..9d806610140 100644 --- a/libs/api.js +++ b/libs/api.js @@ -741,7 +741,7 @@ class API { if (_.isNil(user.id)) return // skip check if ID doesn't exist - if ((global.api.remainingAPICalls <= 10 && global.api.refreshAPICalls > _.now() / 1000)) { + if ((global.api.remainingAPICalls <= 10 && global.api.refreshAPICalls > _.now() / 1000) || _.isNil(cid)) { d('Skip for rate-limit to refresh and re-add user to queue') this.rate_limit_follower_check.push(user.username) return