make label category browseable
This commit is contained in:
parent
e33fe29348
commit
e6a38cdea2
|
@ -3217,9 +3217,21 @@
|
||||||
} else if ($feed == -1) { // starred virtual feed
|
} else if ($feed == -1) { // starred virtual feed
|
||||||
$query_strategy_part = "marked = true";
|
$query_strategy_part = "marked = true";
|
||||||
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
||||||
} else if ($feed == -2) { // published virtual feed
|
} else if ($feed == -2) { // published virtual feed OR labels category
|
||||||
$query_strategy_part = "published = true";
|
|
||||||
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
if (!$cat_view) {
|
||||||
|
$query_strategy_part = "published = true";
|
||||||
|
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
||||||
|
} else {
|
||||||
|
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
|
||||||
|
|
||||||
|
$ext_tables_part = ",ttrss_labels2,ttrss_user_labels2";
|
||||||
|
|
||||||
|
$query_strategy_part = "ttrss_labels2.id = ttrss_user_labels2.label_id AND
|
||||||
|
ttrss_user_labels2.article_id = ref_id";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
} else if ($feed == -3) { // fresh virtual feed
|
} else if ($feed == -3) { // fresh virtual feed
|
||||||
$query_strategy_part = "unread = true";
|
$query_strategy_part = "unread = true";
|
||||||
|
|
||||||
|
@ -4206,7 +4218,7 @@
|
||||||
$cat_hidden = false;
|
$cat_hidden = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
printCategoryHeader($link, -2, $cat_hidden, false);
|
printCategoryHeader($link, -2, $cat_hidden, true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
print "<li><hr></li>";
|
print "<li><hr></li>";
|
||||||
|
|
Loading…
Reference in New Issue