From badb7e2c0556686bb42a013e44803885a1054562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 13 Jun 2024 11:08:23 -0400 Subject: [PATCH] fix: post count --- src/routes/well-known.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/well-known.js b/src/routes/well-known.js index 6d7f61c577..f6d59d703e 100644 --- a/src/routes/well-known.js +++ b/src/routes/well-known.js @@ -40,7 +40,7 @@ module.exports = function (app, middleware, controllers) { const sixMonthsAgo = addMonths(new Date(), -6); const [{ postCount, userCount }, activeMonth, activeHalfyear] = await Promise.all([ - db.getObjectFields('global', ['userCount', 'userCount']), + db.getObjectFields('global', ['postCount', 'userCount']), db.sortedSetCount('users:online', oneMonthAgo.getTime(), '+inf'), db.sortedSetCount('users:online', sixMonthsAgo.getTime(), '+inf'), ]);