From 1ea50ed54fc6923714a015d1deeb4517cab55b6f Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 9 Mar 2023 20:57:01 +0000 Subject: [PATCH] backend: fix API /media call --- lib/PoorBooru/Backend/Controller/Gallery.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PoorBooru/Backend/Controller/Gallery.pm b/lib/PoorBooru/Backend/Controller/Gallery.pm index 30bc92a..3d20f44 100644 --- a/lib/PoorBooru/Backend/Controller/Gallery.pm +++ b/lib/PoorBooru/Backend/Controller/Gallery.pm @@ -20,7 +20,7 @@ sub index ($self) my $poorbooru_api = $self->config("poorbooru_api"); my $ua = Mojo::UserAgent->new; - my $res = $ua->get("$poorbooru_api/media" => form => { page => $page })->result; + my $res = $ua->get("$poorbooru_api/media?page=$page")->result; return $self->render(status => $res->code) if $res->is_error;