Browse Source

it's alright to get spam from getposts eventually.

that is how it is supposed to work.
master
Miguel Freitas 10 years ago
parent
commit
e9e80f8bad
  1. 2
      js/twister_timeline.js

2
js/twister_timeline.js

@ -189,7 +189,6 @@ function showPosts(req, posts) @@ -189,7 +189,6 @@ function showPosts(req, posts)
var streamItemsParent = $.MAL.getStreamPostsParent();
for( var i = 0; i < posts.length; i++ ) {
if (req.users.indexOf(posts[i]['userpost']['n']) > -1 || req.getspam) { // FIXME maybe it's unecessary check but currently we got unwanted adverting posts which are coming with requested ones from 'getposts' sometimes
var post = posts[i];
//console.log(post);
var streamPost = postToElem(post, "original", req.getspam);
@ -228,7 +227,6 @@ function showPosts(req, posts) @@ -228,7 +227,6 @@ function showPosts(req, posts)
req.reportProcessedPost(post["userpost"]["n"],post["userpost"]["k"], streamPostAppended);
}
}
}
// request timeline update for a given list of users
function requestTimelineUpdate(mode, count, timelineUsers, getspam)

Loading…
Cancel
Save