Fix reader media and thread behavior

This commit is contained in:
2026-07-26 15:31:29 +09:00
parent 1794255ebb
commit c43278f785
14 changed files with 253 additions and 53 deletions
+10 -2
View File
@@ -215,14 +215,22 @@ export async function loadThreadPage(
if (!result.success) {
return upstreamFailure(result.error, 'post')
}
const tweets = result.tweets ?? []
const nextCursor =
result.nextCursor &&
tweets.length > 0 &&
result.nextCursor !== input.cursor &&
focalPost?.replyCount !== 0
? result.nextCursor
: undefined
return {
ok: true,
page: {
tweets: (result.tweets ?? []).map(publicPost),
tweets: tweets.map(publicPost),
focalPost,
conversationId,
nextCursor: result.nextCursor,
nextCursor,
},
}
} catch (error) {