From 2a25950c659498ddaeb288f7d5b2f090179a77c5 Mon Sep 17 00:00:00 2001 From: Steven Qiu Date: Sun, 13 Feb 2022 02:37:01 +0800 Subject: [PATCH] Bug fix: textures won't be public if moderation miss --- src/Controllers/ModerationController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Controllers/ModerationController.php b/src/Controllers/ModerationController.php index 318ab37..b3af029 100644 --- a/src/Controllers/ModerationController.php +++ b/src/Controllers/ModerationController.php @@ -26,6 +26,9 @@ public static function start(Texture $texture) $record->tid = $texture->tid; $size = getimagesizefromstring($file); if ($size[0] <= 100 || $size[1] <= 100) { + $texture->public = true; + $texture->save(); + $record->review_state = ReviewState::MISS; $record->save();