feat(api): expose replyToUrl in ThoughtResponse for remote reply context

This commit is contained in:
2026-05-15 05:50:59 +02:00
parent 90dbf76753
commit f946239757
2 changed files with 3 additions and 0 deletions

View File

@@ -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,