mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-19 13:07:40 +01:00
fix: optimizations
- plugins.isActive response now cached in nconf - public addresses filtered out of actor assertion logic during qualification stage - bump mentions to fix db call with empty values - update buildRecipients to exclude public addresses and local URIs when building targeting array
This commit is contained in:
@@ -177,7 +177,9 @@ module.exports = function (Plugins) {
|
||||
if (nconf.get('plugins:active')) {
|
||||
return nconf.get('plugins:active');
|
||||
}
|
||||
return await db.getSortedSetRange('plugins:active', 0, -1);
|
||||
const active = await db.getSortedSetRange('plugins:active', 0, -1);
|
||||
nconf.set('plugins:active', active);
|
||||
return active;
|
||||
};
|
||||
|
||||
Plugins.autocomplete = async (fragment) => {
|
||||
|
||||
Reference in New Issue
Block a user