From 64c98e4755885142ec9d8f0ebf72bb659d0579d9 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 8 Mar 2023 22:26:49 +0000 Subject: [PATCH] offset/limit for standard terminology in API --- 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 139b6e40..f40590a6 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -170,9 +170,9 @@ class Image * @return Image[] */ #[Query(name: "posts", type: "[Post!]!", args: ["tags" => "[string!]"])] - public static function find_images(?int $start = 0, ?int $limit = null, array $tags=[]): array + public static function find_images(?int $offset = 0, ?int $limit = null, array $tags=[]): array { - $result = self::find_images_internal($start, $limit, $tags); + $result = self::find_images_internal($offset, $limit, $tags); $images = []; foreach ($result as $row) {