viewfeed: better checking for reopening current feed
This commit is contained in:
parent
c67cd7ab9d
commit
32834a7412
|
@ -70,7 +70,7 @@ function viewfeed(feed, method, is_cat, offset, background, infscroll_req) {
|
||||||
|
|
||||||
var cached_headlines = false;
|
var cached_headlines = false;
|
||||||
|
|
||||||
if (feed == getActiveFeedId()) {
|
if (feed == getActiveFeedId() && activeFeedIsCat() == is_cat) {
|
||||||
cache_delete("feed:" + feed + ":" + is_cat);
|
cache_delete("feed:" + feed + ":" + is_cat);
|
||||||
} else {
|
} else {
|
||||||
cached_headlines = cache_get("feed:" + feed + ":" + is_cat);
|
cached_headlines = cache_get("feed:" + feed + ":" + is_cat);
|
||||||
|
|
Loading…
Reference in New Issue