mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update StoryItem model
This commit is contained in:
parent
353b8fd856
commit
e764b6e8b3
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
namespace App;
|
namespace App;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Storage;
|
||||||
|
|
||||||
class StoryItem extends Model
|
class StoryItem extends Model
|
||||||
{
|
{
|
||||||
|
@ -10,4 +11,9 @@ class StoryItem extends Model
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Story::class);
|
return $this->belongsTo(Story::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function url()
|
||||||
|
{
|
||||||
|
return Storage::url($this->media_path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue