From 62ece584030e4c9521e853efd3efcda0f107fb4a Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 11 Feb 2024 21:34:57 +0000 Subject: [PATCH] [core] fix uglyurl thumbs --- core/imageboard/image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index 79d9c75d..196c2079 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -362,7 +362,7 @@ class Image implements \ArrayAccess #[Field(name: "image_link")] public function get_image_link(): string { - return $this->get_link(ImageConfig::ILINK, '_images/$hash/$id%20-%20$tags.$ext', 'image/$id.$ext'); + return $this->get_link(ImageConfig::ILINK, '_images/$hash/$id%20-%20$tags.$ext', 'image/$id/$id%20-%20$tags.$ext'); } /** @@ -383,7 +383,7 @@ class Image implements \ArrayAccess global $config; $mime = $config->get_string(ImageConfig::THUMB_MIME); $ext = FileExtension::get_for_mime($mime); - return $this->get_link(ImageConfig::TLINK, '_thumbs/$hash/thumb.'.$ext, 'thumb/$id.'.$ext); + return $this->get_link(ImageConfig::TLINK, '_thumbs/$hash/thumb.'.$ext, 'thumb/$id/thumb.'.$ext); } /**