mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +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);
|
$taggedPeople = MediaTagService::get($status->id);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
'_v' => 1,
|
||||||
'id' => (string) $status->id,
|
'id' => (string) $status->id,
|
||||||
'shortcode' => HashidService::encode($status->id),
|
'shortcode' => HashidService::encode($status->id),
|
||||||
'uri' => $status->url(),
|
'uri' => $status->url(),
|
||||||
|
|
|
@ -22,6 +22,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
||||||
$taggedPeople = MediaTagService::get($status->id);
|
$taggedPeople = MediaTagService::get($status->id);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
'_v' => 1,
|
||||||
'id' => (string) $status->id,
|
'id' => (string) $status->id,
|
||||||
'shortcode' => HashidService::encode($status->id),
|
'shortcode' => HashidService::encode($status->id),
|
||||||
'uri' => $status->url(),
|
'uri' => $status->url(),
|
||||||
|
|
Loading…
Reference in a new issue