mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update Media model, add thumbnailUrl method
This commit is contained in:
parent
612082d043
commit
9c9ebec1ba
1 changed files with 7 additions and 0 deletions
|
@ -23,4 +23,11 @@ class Media extends Model
|
||||||
$url = Storage::url($path);
|
$url = Storage::url($path);
|
||||||
return url($url);
|
return url($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function thumbnailUrl()
|
||||||
|
{
|
||||||
|
$path = $this->thumbnail_path;
|
||||||
|
$url = Storage::url($path);
|
||||||
|
return url($url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue