summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Tags.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-07-08 20:21:42 +0200
committerYorhel <git@yorhel.nl>2019-07-08 20:21:44 +0200
commit62a8a06dfef2ecf94dd9755b01216a14c9b1d886 (patch)
tree32f094f626151e80741157d80a55ed7ae7588f6a /lib/VNDB/Handler/Tags.pm
parent3c4f0a0f2e12a83f87d1a6a4e9c29053d22203be (diff)
Handler::Tags: Fix display of unknown filters in tag link browser
Arguable those should just give a 404, but this works fine, too.
Diffstat (limited to 'lib/VNDB/Handler/Tags.pm')
-rw-r--r--lib/VNDB/Handler/Tags.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index 90b3e726..ab750a9e 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -424,8 +424,8 @@ sub taglinks {
my $o = $self->dbUserGet(uid => $f->{u})->[0];
li;
txt '['; a href => $url->(u=>0), 'remove'; txt '] ';
- txt 'User:'; txt ' ';
- a href => "/u$o->{id}", $o->{username};
+ txt 'User: ';
+ a href => "/u$f->{u}", $o->{username}||'Unknown user';
end;
}
if($f->{t}) {
@@ -433,7 +433,7 @@ sub taglinks {
li;
txt '['; a href => $url->(t=>0), 'remove'; txt '] ';
txt 'Tag:'; txt ' ';
- a href => "/g$o->{id}", $o->{name};
+ a href => "/g$f->{t}", $o->{name}||'Unknown tag';
end;
}
if($f->{v}) {
@@ -441,7 +441,7 @@ sub taglinks {
li;
txt '['; a href => $url->(v=>0), 'remove'; txt '] ';
txt 'Visual novel:'; txt ' ';
- a href => "/v$o->{id}", $o->{title};
+ a href => "/v$f->{v}", $o->{title}||'Unknown VN';
end;
}
end 'ul';