fix for mismatch between favourite count and number of people in favourited seT

This commit is contained in:
Baris Soner Usakli
2014-01-24 12:11:22 -05:00
parent f3bdc55348
commit 7f23f848fe
2 changed files with 18 additions and 12 deletions

View File

@@ -170,6 +170,7 @@ SocketPosts.getPrivileges = function(socket, pid, callback) {
};
SocketPosts.getFavouritedUsers = function(socket, pid, callback) {
favourites.getFavouritedUidsByPids([pid], function(data) {
var max = 5; //hardcoded
var usernames = "";