From 9e0fd36ba756bef43cbef8e94b7d6feec54bf156 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 16:39:42 -0700 Subject: [PATCH] Update Status tranformers, add version attribute --- app/Transformer/Api/StatusStatelessTransformer.php | 1 + app/Transformer/Api/StatusTransformer.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Transformer/Api/StatusStatelessTransformer.php b/app/Transformer/Api/StatusStatelessTransformer.php index 13179f0c..3ad409de 100644 --- a/app/Transformer/Api/StatusStatelessTransformer.php +++ b/app/Transformer/Api/StatusStatelessTransformer.php @@ -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(), diff --git a/app/Transformer/Api/StatusTransformer.php b/app/Transformer/Api/StatusTransformer.php index 1cd3b8d8..718ea66e 100644 --- a/app/Transformer/Api/StatusTransformer.php +++ b/app/Transformer/Api/StatusTransformer.php @@ -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(),