mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 08:55:50 +02:00
fix: missing orderedItems on category outbox index retrieval
This commit is contained in:
@@ -226,6 +226,7 @@ Controller.getCategoryOutbox = async (req, res) => {
|
|||||||
perPage: 20,
|
perPage: 20,
|
||||||
url: `${nconf.get('url')}/category/1/outbox`,
|
url: `${nconf.get('url')}/category/1/outbox`,
|
||||||
});
|
});
|
||||||
|
if (collection.orderedItems) {
|
||||||
collection.orderedItems = await Promise.all(collection.orderedItems.map(async (pid) => {
|
collection.orderedItems = await Promise.all(collection.orderedItems.map(async (pid) => {
|
||||||
let object;
|
let object;
|
||||||
if (utils.isNumber(pid)) {
|
if (utils.isNumber(pid)) {
|
||||||
@@ -244,6 +245,7 @@ Controller.getCategoryOutbox = async (req, res) => {
|
|||||||
object,
|
object,
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
'@context': 'https://www.w3.org/ns/activitystreams',
|
'@context': 'https://www.w3.org/ns/activitystreams',
|
||||||
|
|||||||
Reference in New Issue
Block a user