diff --git a/app/Cdn/Adapter/Filesystem.php b/app/Cdn/Adapter/Filesystem.php index 9cb096a0a..d3e542d5e 100644 --- a/app/Cdn/Adapter/Filesystem.php +++ b/app/Cdn/Adapter/Filesystem.php @@ -78,6 +78,8 @@ public function url(string $filename, array $extra = []): string { if ($this->files->exists($filename) === false) { throw new \Exception("Unable to find a file at path [{$filename}]."); + } elseif (app('files')->extension($filename) === 'gif' && empty($extra)) { + return $this->makeUrl($filename); } return $this->validateImageAnd($filename, function (string $filename) use ($extra) {