diff --git a/nexus/Attachment/Storage.php b/nexus/Attachment/Storage.php index b949a9ae..28badbd9 100644 --- a/nexus/Attachment/Storage.php +++ b/nexus/Attachment/Storage.php @@ -44,6 +44,9 @@ abstract class Storage { public function getImageUrl(string $location): string { + if (str_starts_with($location, "http://") || str_starts_with($location, "https://")) { + return $location; + } return sprintf('%s/%s', trim($this->getBaseUrl(), '/'), trim($location, '/')); }