mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: always send replies uri instead of null if no replies exist, @trwnh
This commit is contained in:
@@ -398,6 +398,8 @@ Helpers.generateCollection = async ({ set, method, page, perPage, url }) => {
|
||||
object.next = page < pageCount ? `${url}?page=${page + 1}` : null;
|
||||
object.prev = page > 1 ? `${url}?page=${page - 1}` : null;
|
||||
}
|
||||
} else {
|
||||
object.orderedItems = [];
|
||||
}
|
||||
|
||||
if (paginate) {
|
||||
|
||||
Reference in New Issue
Block a user