From c67371231ef7c4a2f4186dfe6b248038834d001c Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 14 May 2026 17:49:22 +0200 Subject: [PATCH] =?UTF-8?q?fix(thoughts):=20thought=5Fto=5Fjson=20uses=20c?= =?UTF-8?q?amelCase=20=E2=80=94=20POST/GET=20responses=20now=20match=20Tho?= =?UTF-8?q?ughtSchema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/presentation/src/handlers/thoughts.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/crates/presentation/src/handlers/thoughts.rs b/crates/presentation/src/handlers/thoughts.rs index 809f174..0281fab 100644 --- a/crates/presentation/src/handlers/thoughts.rs +++ b/crates/presentation/src/handlers/thoughts.rs @@ -31,15 +31,17 @@ fn thought_to_json( "id": t.id.as_uuid(), "content": t.content.as_str(), "author": to_user_response(author), - "in_reply_to_id": t.in_reply_to_id.as_ref().map(|x| x.as_uuid()), + "replyToId": t.in_reply_to_id.as_ref().map(|x| x.as_uuid()), "visibility": t.visibility.as_str(), - "content_warning": t.content_warning, + "contentWarning": t.content_warning, "sensitive": t.sensitive, - "like_count": like_count, - "boost_count": boost_count, - "reply_count": reply_count, - "created_at": t.created_at, - "updated_at": t.updated_at, + "likeCount": like_count, + "boostCount": boost_count, + "replyCount": reply_count, + "likedByViewer": false, + "boostedByViewer": false, + "createdAt": t.created_at, + "updatedAt": t.updated_at, }) }