forked from mirror/pixelfed
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)
|
public function transform(Status $status)
|
||||||
{
|
{
|
||||||
return Cache::remember('transform:status:'. $status->url(), 60, function() use($status) {
|
|
||||||
return [
|
return [
|
||||||
'id' => (string) $status->id,
|
'id' => (string) $status->id,
|
||||||
'uri' => $status->url(),
|
'uri' => $status->url(),
|
||||||
|
@ -45,7 +44,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
||||||
|
|
||||||
'pf_type' => $status->type ?? $status->setType(),
|
'pf_type' => $status->type ?? $status->setType(),
|
||||||
];
|
];
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function includeAccount(Status $status)
|
public function includeAccount(Status $status)
|
||||||
|
|
Loading…
Reference in a new issue