fix case where displaying promoted posts failed with an exception

This commit is contained in:
Miguel Freitas 2014-02-27 21:46:06 -03:00
parent 18b84c9443
commit 66f083ef55

View File

@ -103,8 +103,7 @@ function requestObj(users, mode, count, getspam)
this.reportProcessedPost = function(user, id, shown) { this.reportProcessedPost = function(user, id, shown) {
if( this.getspam ) { if( this.getspam ) {
_idTrackerSpam.receivedId(this.mode, id, shown); _idTrackerSpam.receivedId(this.mode, id, shown);
} } else if( this.users.indexOf(user) >= 0 ) {
if( this.users.indexOf(user) >= 0 ) {
_idTrackerMap[user].receivedId(this.mode, id, shown); _idTrackerMap[user].receivedId(this.mode, id, shown);
} }
} }