[core] have ImageReplace replace image->file with a new file, not replace a whole Image object

This commit is contained in:
Shish
2024-01-09 02:33:14 +00:00
parent 267e176658
commit a28fb66b91
10 changed files with 60 additions and 140 deletions

View File

@@ -105,8 +105,8 @@ class S3 extends Extension
public function onImageReplace(ImageReplaceEvent $event)
{
$this->remove_file($event->original->hash);
$this->sync_post($event->replacement, $event->original->get_tag_array());
$this->remove_file($event->original_hash);
$this->sync_post($event->image);
}
// utils