From 989beec4728109c1e173dff2238bf45400007b88 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Wed, 18 Nov 2015 21:15:43 +0100 Subject: [PATCH] bugfix --- js/dom-functions.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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