mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user