fix: add error logging for Mastodon fetch failure
Build Images and Deploy / Update-PROD-Stack (push) Successful in 1m18s

This commit is contained in:
2026-03-18 16:36:36 -04:00
parent d7e318e23c
commit 50ab9b38ac
+2 -1
View File
@@ -45,7 +45,8 @@ export async function POST(req: NextRequest) {
let postsPerHour = 0
try {
postsPerHour = await getPostsPerHour(tag)
} catch {
} catch (err) {
console.error('[research] Mastodon fetch failed:', err)
return NextResponse.json(
{ error: 'Could not reach Mastodon. Try again later.' },
{ status: 502 },