From f94623975730ecdee6b860e7ecb3facaa2cfe167 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Fri, 15 May 2026 05:50:59 +0200 Subject: [PATCH] feat(api): expose replyToUrl in ThoughtResponse for remote reply context --- crates/api-types/src/responses.rs | 2 ++ crates/presentation/src/handlers/feed.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/crates/api-types/src/responses.rs b/crates/api-types/src/responses.rs index dfcf77e..2350a22 100644 --- a/crates/api-types/src/responses.rs +++ b/crates/api-types/src/responses.rs @@ -33,6 +33,8 @@ pub struct ThoughtResponse { pub author: UserResponse, #[serde(rename = "replyToId")] pub in_reply_to_id: Option, + #[serde(rename = "replyToUrl", skip_serializing_if = "Option::is_none")] + pub in_reply_to_url: Option, pub visibility: String, pub content_warning: Option, pub sensitive: bool, diff --git a/crates/presentation/src/handlers/feed.rs b/crates/presentation/src/handlers/feed.rs index 5253897..8f19208 100644 --- a/crates/presentation/src/handlers/feed.rs +++ b/crates/presentation/src/handlers/feed.rs @@ -37,6 +37,7 @@ pub fn to_thought_response(e: &domain::models::feed::FeedEntry) -> ThoughtRespon content: e.thought.content.as_str().to_string(), author: to_user_response(&e.author), in_reply_to_id: e.thought.in_reply_to_id.as_ref().map(|id| id.as_uuid()), + in_reply_to_url: e.thought.in_reply_to_url.clone(), visibility: visibility_as_str(&e.thought.visibility).to_string(), content_warning: e.thought.content_warning.clone(), sensitive: e.thought.sensitive,