Skip to content

Commit

Permalink
Bug fix: textures won't be public if moderation miss
Browse files Browse the repository at this point in the history
  • Loading branch information
tnqzh123 committed Feb 12, 2022
1 parent 75ab115 commit 2a25950
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controllers/ModerationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 2a25950

Please sign in to comment.