Skip to content

Node.js based forum software built for the modern web

fix favourite infinite scroll

barisusakli8bea0bb6e58e
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js
index 46abd5b71e..b41aedc91d 100644
--- a/src/socket.io/posts.js
+++ b/src/socket.io/posts.js
@@ -86,7 +86,7 @@ SocketPosts.getVoters = function(socket, data, callback) {
getVoters(pid, callback);
}
})
-
+
};
function getVoters(pid, callback) {
@@ -422,7 +422,7 @@ SocketPosts.loadMoreFavourites = function(socket, data, callback) {
var start = parseInt(data.after, 10),
end = start + 9;
- posts.getPostsFromSet('uid:' + socket.uid + ':posts', socket.uid, start, end, callback);
+ posts.getPostsFromSet('uid:' + socket.uid + ':favourites', socket.uid, start, end, callback);
};
SocketPosts.loadMoreUserPosts = function(socket, data, callback) {