1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

Update AccountTransformer, add last_fetched_at attribute

This commit is contained in:
Daniel Supernault 2020-04-26 23:29:24 -06:00
parent fcab5010d6
commit 38b0233e96
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -34,7 +34,8 @@ class AccountTransformer extends Fractal\TransformerAbstract
'local' => (bool) $local, 'local' => (bool) $local,
'is_admin' => (bool) $is_admin, 'is_admin' => (bool) $is_admin,
'created_at' => $profile->created_at->toJSON(), 'created_at' => $profile->created_at->toJSON(),
'header_bg' => $profile->header_bg 'header_bg' => $profile->header_bg,
'last_fetched_at' => optional($profile->last_fetched_at)->toJSON()
]; ];
} }