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:
parent
fcab5010d6
commit
38b0233e96
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue