mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
rejigged Topics.get so that it does not return a hardcoded return if no topics were returned
This commit is contained in:
@@ -447,8 +447,9 @@ var config = require('../config.js'),
|
||||
};
|
||||
|
||||
User.get_usernames_by_uids = function(uids, callback) {
|
||||
|
||||
var usernames = [];
|
||||
|
||||
if (!Array.isArray(uids)) return callback([]);
|
||||
|
||||
for(var i=0, ii=uids.length; i<ii; ++i) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user