From ecafa83e14045ebda8a00b251ab62cfc2d7f3012 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Tue, 28 Apr 2026 09:52:38 -0700 Subject: 2026.04.28 - updates deps - updates about, forgot i had a typo - updates blog panel - fixes type issues across a few files - updates uchu link --- src/routes/api/mastodon.json/+server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/routes/api/mastodon.json') diff --git a/src/routes/api/mastodon.json/+server.ts b/src/routes/api/mastodon.json/+server.ts index 72cbd38..f14f726 100644 --- a/src/routes/api/mastodon.json/+server.ts +++ b/src/routes/api/mastodon.json/+server.ts @@ -31,8 +31,8 @@ export const POST = async({ fetch }) => { /*** HELPER ------------------------------------------- ***/ -function findCreateType(arr: Array<{ [key: string]: any }>): { [key: string]: any } | undefined { - return arr.find(obj => obj.type === "Create"); +function findCreateType(arr: Array<{ [key: string]: any }>): { [key: string]: any; } { + return arr.find(obj => obj.type === "Create") || {}; } function processAttachments(attachments: Array<{ [key: string]: any }>): Array { -- cgit v1.2.3