From 243047cb8425a225b6462b754fc72258c5eea83c Mon Sep 17 00:00:00 2001 From: David Gray Date: Wed, 9 Nov 2022 20:34:14 +0000 Subject: [PATCH] fix #3090 (#3092) Co-authored-by: David Gray --- src/MediaCollections/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MediaCollections/Filesystem.php b/src/MediaCollections/Filesystem.php index aedb4d839..7c75ceb00 100644 --- a/src/MediaCollections/Filesystem.php +++ b/src/MediaCollections/Filesystem.php @@ -241,7 +241,7 @@ public function syncMediaPath(Media $media): void $oldMedia = (clone $media)->fill($media->getOriginal()); - if ($oldMedia->getPath() === $media->getPath()) { + if ($factory->getPath($oldMedia) === $factory->getPath($media)) { return; }