From c88cd361118514fff08d30c2183a6fa94d335387 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 1 Sep 2022 08:53:59 +0200 Subject: Always display "lie" flag when tag has been set in user preferences Fixes https://vndb.org/t12792.10 (or not?) --- lib/VNWeb/VN/Page.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/VNWeb/VN/Page.pm b/lib/VNWeb/VN/Page.pm index ec54dbe7..69aff93b 100644 --- a/lib/VNWeb/VN/Page.pm +++ b/lib/VNWeb/VN/Page.pm @@ -401,7 +401,7 @@ sub infobox_tags_ { $cnt->[0]++ if $spoil < 1; my $cut = $_->{override} ? '' : $cnt->[0] > 15 ? ' cut cut2 cut1 cut0' : $cnt->[1] > 15 ? ' cut cut2 cut1' : $cnt->[2] > 15 ? ' cut cut2' : ''; span_ class => "tagspl$spoil cat_$_->{cat} $cut", sub { - a_ href => "/$_->{id}", mkclass(lie => $_->{lie}, standout => $_->{spoiler} == -1), + a_ href => "/$_->{id}", mkclass($_->{override} ? 'lieo' : 'lie', $_->{lie}, standout => $_->{spoiler} == -1), style => sprintf('font-size: %dpx', $_->{rating}*3.5+6), $_->{name}; spoil_ $spoil; b_ class => 'grayedout', sprintf ' %.1f', $_->{rating}; @@ -921,7 +921,7 @@ sub tags_ { b_ class => 'grayedout', '━━'x($lvl-1).' ' if $lvl > 1; a_ href => "/$t->{id}", mkclass( standout => $t->{spoiler} == -1, - lie => $view->{spoilers} > 1 && $t->{lie}, + lie => $t->{lie} && ($view->{spoilers} > 1 || $t->{override}), parent => !$t->{rating}), $t->{name}; spoil_ $t->{spoiler}; } if $lvl; -- cgit v1.2.3