From e1277d4081835103706d0bf22964cb76a5066030 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 27 Aug 2021 20:37:00 -0600 Subject: [PATCH] Update StatusStatelessTransformer, cast snowflake ids as strings --- app/Transformer/Api/StatusStatelessTransformer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Transformer/Api/StatusStatelessTransformer.php b/app/Transformer/Api/StatusStatelessTransformer.php index 67bd5c72f..5dbca96b2 100644 --- a/app/Transformer/Api/StatusStatelessTransformer.php +++ b/app/Transformer/Api/StatusStatelessTransformer.php @@ -27,8 +27,8 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract 'shortcode' => HashidService::encode($status->id), 'uri' => $status->url(), 'url' => $status->url(), - 'in_reply_to_id' => $status->in_reply_to_id, - 'in_reply_to_account_id' => $status->in_reply_to_profile_id, + 'in_reply_to_id' => (string) $status->in_reply_to_id, + 'in_reply_to_account_id' => (string) $status->in_reply_to_profile_id, 'reblog' => null, 'content' => $status->rendered ?? $status->caption, 'content_text' => $status->caption,