1
0
Fork 0
forked from mirror/pixelfed

Update Profile model, cast timestamp for last_fetched_at

This commit is contained in:
Daniel Supernault 2020-04-26 02:07:17 -06:00
parent c7ccb26ffc
commit 6969bb5bb4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -18,7 +18,10 @@ class Profile extends Model
*/ */
public $incrementing = false; public $incrementing = false;
protected $dates = ['deleted_at']; protected $dates = [
'deleted_at',
'last_fetched_at'
];
protected $hidden = ['private_key']; protected $hidden = ['private_key'];
protected $visible = ['id', 'user_id', 'username', 'name']; protected $visible = ['id', 'user_id', 'username', 'name'];
protected $fillable = ['user_id']; protected $fillable = ['user_id'];