mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Status tranformers, add version attribute
This commit is contained in:
parent
899bbeba5f
commit
9e0fd36ba7
2 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
|
|||
$taggedPeople = MediaTagService::get($status->id);
|
||||
|
||||
return [
|
||||
'_v' => 1,
|
||||
'id' => (string) $status->id,
|
||||
'shortcode' => HashidService::encode($status->id),
|
||||
'uri' => $status->url(),
|
||||
|
|
|
@ -22,6 +22,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
$taggedPeople = MediaTagService::get($status->id);
|
||||
|
||||
return [
|
||||
'_v' => 1,
|
||||
'id' => (string) $status->id,
|
||||
'shortcode' => HashidService::encode($status->id),
|
||||
'uri' => $status->url(),
|
||||
|
|
Loading…
Reference in a new issue