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
3 changed files with 4 additions and 3 deletions
Showing only changes of commit 057ed3ccbf - Show all commits

View File

@@ -188,7 +188,7 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
>
<Calendar className="h-4 w-4" />
<span>
Joined {new Date(user.joinedAt).toLocaleDateString()}
Joined {user.joinedAt ? new Date(user.joinedAt).toLocaleDateString() : "Unknown"}
</span>
</div>
</Card>

View File

@@ -28,7 +28,8 @@ export default async function AllUsersPage({
);
}
const { items, total, per_page } = usersData;\n const perPage = per_page;
const { items, total, per_page } = usersData;
const perPage = per_page;
const totalPages = Math.ceil(total / perPage);
return (

View File

@@ -10,7 +10,7 @@ export const UserSchema = z.object({
customCss: z.string().nullable(),
local: z.boolean(),
isFollowedByViewer: z.boolean(),
joinedAt: z.coerce.date(),
joinedAt: z.coerce.date().nullable(),
});
export const MeSchema = UserSchema;