diff --git a/dashboard_static/lib/tweets.js b/dashboard_static/lib/tweets.js index 94bc051..0f45d4a 100644 --- a/dashboard_static/lib/tweets.js +++ b/dashboard_static/lib/tweets.js @@ -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])); } });