1
0
Fork 0

Update Status tranformers, add version attribute

This commit is contained in:
Daniel Supernault 2021-01-30 16:39:42 -07:00
parent 899bbeba5f
commit 9e0fd36ba7
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
2 changed files with 2 additions and 0 deletions

View File

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

View File

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