mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-04-14 08:28:23 +02:00
fix: extra orderedItems property in generated paginated OrderedCollection, #13153
This commit is contained in:
@@ -156,7 +156,7 @@ Actors.topic = async function (req, res, next) {
|
||||
res.set('ETag', digest);
|
||||
|
||||
// Convert pids to urls
|
||||
if (page || collection.totalItems < meta.config.postsPerPage) {
|
||||
if (page || collection.totalItems < perPage) {
|
||||
collection.orderedItems = collection.orderedItems || [];
|
||||
if (!page || page === 1) { // add OP to collection
|
||||
collection.orderedItems.unshift(mainPid);
|
||||
|
||||
Reference in New Issue
Block a user