[core] have ThumbnailGenerationEvent work on an Image

This commit is contained in:
Shish
2024-01-09 01:03:46 +00:00
parent 01261b0fa6
commit 0762da54eb
6 changed files with 12 additions and 12 deletions

View File

@@ -105,7 +105,7 @@ class AdminPage extends Extension
$uid = $event->args[0];
$image = Image::by_id_or_hash($uid);
if ($image) {
send_event(new ThumbnailGenerationEvent($image->hash, $image->get_mime(), true));
send_event(new ThumbnailGenerationEvent($image, true));
} else {
print("No post with ID '$uid'\n");
}