summaryrefslogtreecommitdiff
path: root/lib/VNWeb/TT/TagPage.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-09 16:44:13 +0100
committerYorhel <git@yorhel.nl>2021-01-09 16:44:13 +0100
commit5d275ce2ceb1112c1e02bbe9134b22ac478975fc (patch)
tree11d3fb560bee52af8f4ab7c2cac73bce6f04799c /lib/VNWeb/TT/TagPage.pm
parent1ec958ba9d2e40c65246bd29f28b2b50364b2a5a (diff)
AdvSearch: Apply new saved default queries to listings instead of old filters
Diffstat (limited to 'lib/VNWeb/TT/TagPage.pm')
-rw-r--r--lib/VNWeb/TT/TagPage.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VNWeb/TT/TagPage.pm b/lib/VNWeb/TT/TagPage.pm
index 80b14d8d..bd545c98 100644
--- a/lib/VNWeb/TT/TagPage.pm
+++ b/lib/VNWeb/TT/TagPage.pm
@@ -117,10 +117,7 @@ sub vns_ {
}
}
- if(auth && !$opt->{f}{query} && !defined tuwf->reqGet('f')) {
- my $def = tuwf->dbVali('SELECT query FROM saved_queries WHERE qtype = \'v\' AND name = \'\' AND uid =', \auth->uid);
- $opt->{f} = tuwf->compile({ advsearch => 'v' })->validate($def)->data if $def;
- }
+ $opt->{f} = advsearch_default 'v' if !$opt->{f}{query} && !defined tuwf->reqGet('f');
my $where = sql 'tvi.tag =', \$t->{id}, 'AND NOT v.hidden AND tvi.spoiler <=', \$opt->{m}, 'AND', $opt->{f}->sql_where();