Live feed finaly working
This commit is contained in:
@@ -95,8 +95,9 @@ block.fn.tweets = function(config) {
|
||||
$list.replaceChildren();
|
||||
// tweets = filterTweets(tweets, filters.blockedWords, filters.searchedWords + filters.sports, filters.sorted, filters.order);
|
||||
// tweets = sortTweets(tweets);
|
||||
var displayTweets = tweets.reverse().slice(0, options.memory).reverse();
|
||||
for (i = 0; i < options.memory-1; i++){
|
||||
$list.prepend(tweetCell(tweets[i]));
|
||||
$list.prepend(tweetCell(displayTweets[i]));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user