Add annotations

This commit is contained in:
Eric Bailey
2025-05-22 16:23:03 -05:00
parent a16f5ecbff
commit 2183de7452
6 changed files with 31 additions and 45 deletions
+2 -8
View File
@@ -90,6 +90,7 @@ export function threadPost({
record: AppBskyFeedPost.Record
},
},
annotations: new Set(value.annotations),
moderation: moderatePost(value.post, moderationOpts),
ui: {
isAnchor: depth === 0,
@@ -99,8 +100,6 @@ export function threadPost({
}
}
// export function threadPostNoOp({ })
export function postViewToThreadPlaceholder(
post: AppBskyFeedDefs.PostView,
): $Typed<
@@ -115,12 +114,7 @@ export function postViewToThreadPlaceholder(
value: {
$type: 'app.bsky.unspecced.getPostThreadV2#threadItemPost',
post,
isOPThread: false, // unknown
hasOPLike: false, // unknown
// @ts-expect-error
hasUnhydratedReplies: false, // unknown
// TODO test
hasUnhydratedParents: !!(post.record as AppBskyFeedPost.Record).reply, // unknown
annotations: [],
},
}
}