mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 07:45:22 +00:00
Update Media model
This commit is contained in:
parent
d7b6edc018
commit
d0bfefe8d0
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ class Media extends Model
|
|||
*/
|
||||
protected $dates = ['deleted_at'];
|
||||
|
||||
protected $casts = [
|
||||
'srcset' => 'array'
|
||||
];
|
||||
|
||||
public function status()
|
||||
{
|
||||
return $this->belongsTo(Status::class);
|
||||
|
|
Loading…
Reference in a new issue