forked from mirror/pixelfed
Update Status tranformers, add version attribute
This commit is contained in:
parent
899bbeba5f
commit
9e0fd36ba7
|
@ -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 New Issue