summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-03-11 09:07:14 +0100
committerYorhel <git@yorhel.nl>2020-03-11 09:07:16 +0100
commitd3b7d3ff7a70e726d221d78f4e991ec76f75909f (patch)
tree7077e8ca46bcab17f813a0f94d30bed057735f44
parent39338e83b6d3a216a6bd614fb2709d2e34015e71 (diff)
Chars::Page: Fix display of spoiler settings when VN is only spoiler
https://vndb.org/t13657
-rw-r--r--lib/VNWeb/Chars/Page.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNWeb/Chars/Page.pm b/lib/VNWeb/Chars/Page.pm
index b8d5ad4a..49acf20e 100644
--- a/lib/VNWeb/Chars/Page.pm
+++ b/lib/VNWeb/Chars/Page.pm
@@ -232,6 +232,7 @@ TUWF::get qr{/$RE{crev}} => sub {
my $max_spoil = max(
$inst_maxspoil||0,
(map $_->{spoil}, $c->{traits}->@*),
+ (map $_->{spoil}, $c->{vns}->@*),
$c->{desc} =~ /\[spoiler\]/i ? 2 : 0, # crude
);
# Only display the sexual traits toggle when there are sexual traits within the current spoiler level.