From bbc7f2afba72e3447225e0ef56fbb2fe92f7ebed Mon Sep 17 00:00:00 2001 From: Tong Ho Date: Wed, 20 Jul 2022 08:42:08 +0700 Subject: [PATCH] fix: cannot turn off all networks --- src/social.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/social.js b/src/social.js index b4cb54ae22..c95f2cc3ac 100644 --- a/src/social.js +++ b/src/social.js @@ -41,12 +41,12 @@ social.getActivePostSharing = async function () { }; social.setActivePostSharingNetworks = async function (networkIDs) { + social.postSharing = null; await db.delete('social:posts.activated'); if (!networkIDs.length) { return; } await db.setAdd('social:posts.activated', networkIDs); - social.postSharing = null; }; require('./promisify')(social);