feat: add in_reply_to_url field to FeedRow and ThoughtRow, update related queries and handlers
All checks were successful
lint / lint (push) Successful in 16m58s
test / unit (push) Successful in 20m24s

This commit is contained in:
2026-07-04 15:46:19 +02:00
parent 052d8c67bb
commit 09f5caefe7
11 changed files with 15 additions and 195 deletions

View File

@@ -29,6 +29,7 @@ struct FeedRow {
t_user_id: uuid::Uuid,
content: String,
in_reply_to_id: Option<uuid::Uuid>,
in_reply_to_url: Option<String>,
visibility: String,
content_warning: Option<String>,
sensitive: bool,
@@ -52,6 +53,7 @@ fn row_to_entry(r: FeedRow, viewer: Option<uuid::Uuid>) -> Result<FeedEntry, Dom
user_id: UserId::from_uuid(r.t_user_id),
content: Content::new_remote(r.content),
in_reply_to_id: r.in_reply_to_id.map(ThoughtId::from_uuid),
in_reply_to_url: r.in_reply_to_url,
visibility: Visibility::from_db_str(&r.visibility)?,
content_warning: r.content_warning,
sensitive: r.sensitive,
@@ -111,7 +113,7 @@ impl<'a> FeedSqlBuilder<'a> {
"
SELECT
t.id AS thought_id, t.user_id AS t_user_id, t.content,
t.in_reply_to_id,
t.in_reply_to_id, t.in_reply_to_url,
t.visibility, t.content_warning, t.sensitive, t.local AS t_local,
t.created_at AS thought_created_at, t.updated_at AS thought_updated_at,
t.note_extensions, t.mood,