mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fetch media content-type from data, instead of doing naive guesses
This commit is contained in:
parent
6f67881d96
commit
4fdb96930f
8 changed files with 111 additions and 23 deletions
|
|
@ -394,7 +394,16 @@ export const Users = pgTable(
|
|||
inbox: string;
|
||||
outbox: string;
|
||||
}> | null>(),
|
||||
source: jsonb("source").notNull().$type<ApiSource>(),
|
||||
source: jsonb("source").notNull().$type<
|
||||
ApiSource & {
|
||||
avatar?: {
|
||||
content_type: string;
|
||||
};
|
||||
header?: {
|
||||
content_type: string;
|
||||
};
|
||||
}
|
||||
>(),
|
||||
avatar: text("avatar").notNull(),
|
||||
header: text("header").notNull(),
|
||||
createdAt: timestamp("created_at", { precision: 3, mode: "string" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue