Skip to content

Node.js based forum software built for the modern web

test: fix spec, remove log

Barış Soner Uşaklı05dd46c31fd0
diff --git a/public/openapi/read/world.yaml b/public/openapi/read/world.yaml
index d5d95461e5..d4bf00a658 100644
--- a/public/openapi/read/world.yaml
+++ b/public/openapi/read/world.yaml
@@ -45,6 +45,8 @@ get:
nullable: true
title:
type: string
+ topicCount:
+ type: number
categories:
type: array
items:
diff --git a/src/controllers/activitypub/topics.js b/src/controllers/activitypub/topics.js
index 59eed289c1..11cc8368f4 100644
--- a/src/controllers/activitypub/topics.js
+++ b/src/controllers/activitypub/topics.js
@@ -122,7 +122,6 @@ controller.list = async function (req, res) {
data.title = translator.escape(data.name);
data.breadcrumbs = helpers.buildBreadcrumbs([]);
- console.log(data.topicCount, topicsPerPage);
const pageCount = Math.max(1, Math.ceil(data.topicCount / topicsPerPage));
data.pagination = pagination.create(page, pageCount, req.query);
helpers.addLinkTags({