From 66f083ef55233b6055143eaa0c5a02409f47f4de Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 27 Feb 2014 21:46:06 -0300 Subject: [PATCH] fix case where displaying promoted posts failed with an exception --- twister_timeline.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/twister_timeline.js b/twister_timeline.js index cf78957..5a7bd30 100644 --- a/twister_timeline.js +++ b/twister_timeline.js @@ -103,8 +103,7 @@ function requestObj(users, mode, count, getspam) this.reportProcessedPost = function(user, id, shown) { if( this.getspam ) { _idTrackerSpam.receivedId(this.mode, id, shown); - } - if( this.users.indexOf(user) >= 0 ) { + } else if( this.users.indexOf(user) >= 0 ) { _idTrackerMap[user].receivedId(this.mode, id, shown); } }