feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user