From 0670a2a71ddb769e5b5d2e56e6cc2c41adebe715 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 11 Jul 2012 00:29:36 +0400 Subject: [PATCH] precache_headlines: fix typo which caused 2 requests of same feed --- js/viewfeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index e8d449a2..a4e9f82c 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -2083,7 +2083,7 @@ function precache_headlines() { if (nuf && !cache_get("feed:" + nuf + ":" + activeFeedIsCat())) viewfeed(nuf, '', activeFeedIsCat(), 0, true); - if (nf != nuf && nf && !cache_get("feed:" + nf[0] + ":" + nf[1])) + if (nf && nf[0] != nuf && !cache_get("feed:" + nf[0] + ":" + nf[1])) viewfeed(nf[0], '', nf[1], 0, true); window.setTimeout(function() { -- 2.39.5