1
0
Fork 0
forked from mirror/pixelfed

Update StatusTransformer

This commit is contained in:
Daniel Supernault 2019-02-16 11:48:24 -07:00
parent 7b7ce8ea8a
commit 6fc752b5ad
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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)