mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 16:24:29 +00:00
Update Media model
This commit is contained in:
parent
79f84b59d2
commit
b14ad224ad
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ class Media extends Model
|
||||||
public function url()
|
public function url()
|
||||||
{
|
{
|
||||||
if(!empty($this->remote_media) && $this->remote_url) {
|
if(!empty($this->remote_media) && $this->remote_url) {
|
||||||
|
//$url = \App\Services\MediaProxyService::get($this->remote_url, $this->mime);
|
||||||
$url = $this->remote_url;
|
$url = $this->remote_url;
|
||||||
} else {
|
} else {
|
||||||
$path = $this->media_path;
|
$path = $this->media_path;
|
||||||
|
|
Loading…
Reference in a new issue