From ff22b71fa1d77678c546e3d37cb561af95eb9122 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 22 Feb 2023 21:10:01 +0000 Subject: [PATCH] backend: use tag name instead of ID --- lib/PoorBooru.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PoorBooru.pm b/lib/PoorBooru.pm index a803873..f9ee01e 100644 --- a/lib/PoorBooru.pm +++ b/lib/PoorBooru.pm @@ -163,7 +163,7 @@ get "/random/tag" => sub { my $data = decode_json($res->{content}); # XXX body content. - redirect "/tag/$data->{id}"; + redirect "/tag/$data->{name}"; }; true;