mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +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 $dates = ['deleted_at'];
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'srcset' => 'array'
|
||||||
|
];
|
||||||
|
|
||||||
public function status()
|
public function status()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Status::class);
|
return $this->belongsTo(Status::class);
|
||||||
|
|
Loading…
Reference in a new issue