mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix: cannot turn off all networks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user