@@ -34,10 +34,10 @@ class Media extends Model
$url = $this->remote_url;
} else {
$path = $this->media_path;
- $url = $this->cdn_url ?? Storage::url($path);
+ $url = $this->cdn_url ?? config('app.url') . Storage::url($path);
}
- return url($url);
+ return $url;
public function thumbnailUrl()
@@ -140,7 +140,7 @@ class Profile extends Model
$version = hash('sha256', $avatar->change_count);
$path = "{$path}?v={$version}";
- return url(Storage::url($path));
+ return config('app.url') . Storage::url($path);
});
return $url;