diff --git a/js/dom-functions.js b/js/dom-functions.js index 9b2a27f..63e9ebd 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -1470,6 +1470,7 @@ function addToFeed(feed, after, extraClasses, isReply) { feed = [feed]; } + $.each(feed.reverse(), function (key,obj) { var extraClassesThisRun = extraClasses; @@ -1840,12 +1841,14 @@ function addToFeed(feed, after, extraClasses, isReply) { function buildQueetHtml(obj, idInStream, extraClassesThisRun, requeeted_by, isConversation) { // if we've blocked this user, but it has slipped through anyway - $.each(window.allBlocking,function(){ - if(this == obj.user.id){ - extraClassesThisRun = extraClassesThisRun + ' profile-blocked-by-me'; - return false; // break - } - }); + if(typeof window.allBlocking != 'undefined') { + $.each(window.allBlocking,function(){ + if(this == obj.user.id){ + extraClassesThisRun = extraClassesThisRun + ' profile-blocked-by-me'; + return false; // break + } + }); + } // if we have the full html for a truncated notice cached in localstorage, we use that