From 3896856c06400acb7d8279aa7c6de5bc15901f11 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 14 Feb 2023 01:02:58 +0000 Subject: [PATCH] more fields --- core/imageboard/image.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index e62ba0a6..84540254 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -36,7 +36,6 @@ class Image public string $filename; #[Field] private string $ext; - #[Field] private string $mime; /** @var ?string[] */ @@ -595,6 +594,7 @@ class Image /** * Get the original filename. */ + #[Field(name: "filename")] public function get_filename(): string { return $this->filename; @@ -603,6 +603,7 @@ class Image /** * Get the image's extension. */ + #[Field(name: "ext")] public function get_ext(): string { return $this->ext; @@ -611,6 +612,7 @@ class Image /** * Get the image's mime type. */ + #[Field(name: "mime")] public function get_mime(): ?string { if ($this->mime===MimeType::WEBP&&$this->lossless) {