Browse Source

fix case where displaying promoted posts failed with an exception

master
Miguel Freitas 11 years ago
parent
commit
66f083ef55
  1. 3
      twister_timeline.js

3
twister_timeline.js

@ -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);
} }
} }

Loading…
Cancel
Save