mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
fixed mongo setAdd and setRemove to accept arrays like redis, fixed infinite scroll for mongo
This commit is contained in:
@@ -71,6 +71,7 @@ var fs = require('fs'),
|
||||
plugins.push(meta.config['theme:id']);
|
||||
|
||||
async.each(plugins, function(plugin, next) {
|
||||
|
||||
if (!plugin) {
|
||||
return next();
|
||||
}
|
||||
@@ -377,7 +378,7 @@ var fs = require('fs'),
|
||||
}).filter(function(file) {
|
||||
var stats = fs.statSync(file),
|
||||
isPlugin = file.substr(npmPluginPath.length + 1, 14) === 'nodebb-plugin-' || file.substr(npmPluginPath.length + 1, 14) === 'nodebb-widget-';
|
||||
|
||||
|
||||
if (stats.isDirectory() && isPlugin) return true;
|
||||
else return false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user