feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1

Merged
GKaszewski merged 334 commits from v2 into master 2026-05-16 09:42:43 +00:00
Showing only changes of commit c67371231e - Show all commits

View File

@@ -31,15 +31,17 @@ fn thought_to_json(
"id": t.id.as_uuid(), "id": t.id.as_uuid(),
"content": t.content.as_str(), "content": t.content.as_str(),
"author": to_user_response(author), "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(), "visibility": t.visibility.as_str(),
"content_warning": t.content_warning, "contentWarning": t.content_warning,
"sensitive": t.sensitive, "sensitive": t.sensitive,
"like_count": like_count, "likeCount": like_count,
"boost_count": boost_count, "boostCount": boost_count,
"reply_count": reply_count, "replyCount": reply_count,
"created_at": t.created_at, "likedByViewer": false,
"updated_at": t.updated_at, "boostedByViewer": false,
"createdAt": t.created_at,
"updatedAt": t.updated_at,
}) })
} }