Live feed finaly working

This commit is contained in:
2022-11-03 12:09:09 +01:00
parent f908e86e48
commit 9ec0a27677

View File

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