mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: null case handling
This commit is contained in:
@@ -13,7 +13,7 @@ Instances.getCount = async () => db.sortedSetCard('instances:lastSeen');
|
|||||||
|
|
||||||
Instances.isAllowed = async (domain) => {
|
Instances.isAllowed = async (domain) => {
|
||||||
let { activitypubFilter: type, activitypubFilterList: list } = meta.config;
|
let { activitypubFilter: type, activitypubFilterList: list } = meta.config;
|
||||||
list = new Set(list.split('\n'));
|
list = new Set(String(list).split('\n'));
|
||||||
// eslint-disable-next-line no-bitwise
|
// eslint-disable-next-line no-bitwise
|
||||||
return list.has(domain) ^ !type;
|
return list.has(domain) ^ !type;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user