mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Revert media model change
This commit is contained in:
parent
c293db1d59
commit
c6fe213f93
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ class Media extends Model
|
||||||
public function url()
|
public function url()
|
||||||
{
|
{
|
||||||
if($this->cdn_url) {
|
if($this->cdn_url) {
|
||||||
return Storage::disk(config('filesystems.cloud'))->url($this->media_path);
|
// return Storage::disk(config('filesystems.cloud'))->url($this->media_path);
|
||||||
|
return $this->cdn_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->remote_media && $this->remote_url) {
|
if($this->remote_media && $this->remote_url) {
|
||||||
|
|
Loading…
Reference in a new issue