From 14fc4af1ef5b053f4a17ab91704feb8f6e2d7f2a Mon Sep 17 00:00:00 2001 From: oppilate <64395752+oppilate@users.noreply.github.com> Date: Mon, 14 Dec 2020 11:47:06 +0000 Subject: [PATCH] fix: try to fix instagram account suspension (#6434) --- lib/routes/instagram/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routes/instagram/utils.js b/lib/routes/instagram/utils.js index f14dbdf73..b49acf8ef 100644 --- a/lib/routes/instagram/utils.js +++ b/lib/routes/instagram/utils.js @@ -10,6 +10,7 @@ async function login(ig) { ig.state.generateDevice(process.env.IG_USERNAME); await ig.simulate.preLoginFlow(); await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD); + process.nextTick(async () => await ig.simulate.postLoginFlow()); logger.info('Instagram login success.'); } catch (error) { logger.error('Instagram login fail: ' + error);