fix artifact mime parsing build
This commit is contained in:
@@ -789,7 +789,7 @@ async function proxySocialRequest(req: Request, rest: string, userId: string) {
|
||||
}
|
||||
|
||||
function artifactExtension(mimeType: string | undefined): string {
|
||||
const normalized = mimeType?.split(";", 1)[0].trim().toLowerCase();
|
||||
const normalized = mimeType?.split(";", 1)[0]?.trim().toLowerCase();
|
||||
const extensions: Record<string, string> = {
|
||||
"audio/mpeg": "mp3",
|
||||
"audio/mp3": "mp3",
|
||||
|
||||
Reference in New Issue
Block a user