mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 16:53:17 +00:00
Update StatusTransformer
This commit is contained in:
parent
7b7ce8ea8a
commit
6fc752b5ad
1 changed files with 26 additions and 28 deletions
|
@ -17,7 +17,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
|
||||
public function transform(Status $status)
|
||||
{
|
||||
return Cache::remember('transform:status:'. $status->url(), 60, function() use($status) {
|
||||
return [
|
||||
'id' => (string) $status->id,
|
||||
'uri' => $status->url(),
|
||||
|
@ -45,7 +44,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
|
||||
'pf_type' => $status->type ?? $status->setType(),
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
public function includeAccount(Status $status)
|
||||
|
|
Loading…
Reference in a new issue