mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-21 15:03:12 +01:00
fix: another case
This commit is contained in:
@@ -71,13 +71,15 @@ Controller.getFollowing = async (req, res) => {
|
|||||||
url: `${nconf.get('url')}/uid/${req.params.uid}/following`,
|
url: `${nconf.get('url')}/uid/${req.params.uid}/following`,
|
||||||
});
|
});
|
||||||
|
|
||||||
collection.orderedItems = collection.orderedItems.map(({ uid }) => {
|
if (collection.hasOwnProperty('orderedItems')) {
|
||||||
if (utils.isNumber(uid)) {
|
collection.orderedItems = collection.orderedItems.map(({ uid }) => {
|
||||||
return `${nconf.get('url')}/uid/${uid}`;
|
if (utils.isNumber(uid)) {
|
||||||
}
|
return `${nconf.get('url')}/uid/${uid}`;
|
||||||
|
}
|
||||||
|
|
||||||
return uid;
|
return uid;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
res.status(200).json(collection);
|
res.status(200).json(collection);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user