mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-24 23:35:23 +00:00
Update avatar model
This commit is contained in:
parent
9c5e6a7172
commit
f7e72d7c62
1 changed files with 13 additions and 1 deletions
|
@ -14,9 +14,21 @@ class Avatar extends Model
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $dates = ['deleted_at'];
|
protected $dates = [
|
||||||
|
'deleted_at',
|
||||||
|
'last_fetched_at',
|
||||||
|
'last_processed_at'
|
||||||
|
];
|
||||||
|
|
||||||
protected $fillable = ['profile_id'];
|
protected $fillable = ['profile_id'];
|
||||||
|
|
||||||
|
protected $visible = [
|
||||||
|
'id',
|
||||||
|
'profile_id',
|
||||||
|
'media_path',
|
||||||
|
'size',
|
||||||
|
];
|
||||||
|
|
||||||
public function profile()
|
public function profile()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Profile::class);
|
return $this->belongsTo(Profile::class);
|
||||||
|
|
Loading…
Reference in a new issue