fix: closes #12246, direction is passed in as string as query param with new api call

cid isn't necessary in query params since its in path
This commit is contained in:
Barış Soner Uşaklı
2023-12-27 17:43:56 -05:00
parent a74b51415c
commit 8867f243e8
3 changed files with 2 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ module.exports = function (SocketTopics) {
parseInt(data.count, 10) || meta.config.postsPerPage || 20
));
if (data.direction === -1) {
if (parseInt(data.direction, 10) === -1) {
start -= infScrollPostsPerPage;
}