fix: classify malformed thread metadata

This commit is contained in:
2026-07-14 02:04:11 +09:00
parent f82f6641b2
commit d8827b6513
4 changed files with 58 additions and 6 deletions
+7 -3
View File
@@ -133,9 +133,13 @@ export async function loadThreadPage(
return upstreamFailure(focal.error ?? 'Tweet not found', 'post')
}
focalPost = publicPost(focal.tweet)
conversationId = normalizeTweetId(
focal.tweet.conversationId ?? focal.tweet.id,
)
try {
conversationId = normalizeTweetId(
focal.tweet.conversationId ?? focal.tweet.id,
)
} catch (error) {
return upstreamFailure(error, 'post')
}
}
const result = await reader.getThreadPaged(conversationId, {