Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/providers/piefed/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export function toPerson(
return {
...person,
avatar: person.avatar ?? undefined, // TODO piefed types are wrong, this is returned as null if not set
banner: person.banner ?? undefined, // TODO piefed types are wrong, this is returned as null if not set
bio: person.about ?? undefined, // TODO piefed types are wrong, this is returned as null if not set
bot_account: person.bot,
display_name: person.title ?? undefined, // TODO piefed types are wrong, this is returned as null if not set
name: person.user_name!,
Expand Down
2 changes: 2 additions & 0 deletions src/schemas/Person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { z } from "zod/v4-mini";
export const Person = z.object({
actor_id: z.string(),
avatar: z.optional(z.string()),
banner: z.optional(z.string()),
bio: z.optional(z.string()),
bot_account: z.boolean(),
deleted: z.boolean(),
display_name: z.optional(z.string()),
Expand Down