diff options
author | Yorhel <git@yorhel.nl> | 2020-07-22 08:42:19 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-07-22 08:42:22 +0200 |
commit | d6a601ad264360293c325019203a97902d8a9708 (patch) | |
tree | c827e53bd68d6b3e186ceaadf061c8a58f0fce6b | |
parent | 81e4ac72a1c255661bf10bbe8d01f9ec50faa4e4 (diff) |
VN::Graph: Display unofficial relations by default
It's much harder to determine whether to display the show/hide buttons
otherwise. https://vndb.org/t2520.461
-rw-r--r-- | lib/VNWeb/VN/Graph.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/VN/Graph.pm b/lib/VNWeb/VN/Graph.pm index 23ac6201..e00f656e 100644 --- a/lib/VNWeb/VN/Graph.pm +++ b/lib/VNWeb/VN/Graph.pm @@ -7,7 +7,7 @@ use VNWeb::Graph; TUWF::get qr{/$RE{vid}/rg}, sub { my $id = tuwf->capture(1); my $num = tuwf->validate(get => num => { uint => 1, onerror => 15 })->data; - my $unoff = tuwf->validate(get => unoff => { anybool => 1 })->data; + my $unoff = tuwf->validate(get => unoff => { default => 1, anybool => 1 })->data; my $v = tuwf->dbRowi('SELECT id, title, original, hidden AS entry_hidden, locked AS entry_locked FROM vn WHERE id =', \$id); my $has = tuwf->dbRowi('SELECT bool_or(official) AS official, bool_or(not official) AS unofficial FROM vn_relations WHERE id =', \$id, 'GROUP BY id'); |