Simplify parsing

This commit is contained in:
Eric Bailey
2026-01-07 18:48:24 -06:00
parent 0d066eb1a1
commit c8008da312
@@ -1,6 +1,5 @@
import { import {
AppBskyActorDefs, AppBskyActorDefs,
AppBskyActorStatus,
AppBskyFeedDefs, AppBskyFeedDefs,
AppBskyFeedPost, AppBskyFeedPost,
AppBskyGraphDefs, AppBskyGraphDefs,
@@ -35,20 +34,12 @@ export function parseReportSubject(
nsid: 'app.bsky.actor.profile', nsid: 'app.bsky.actor.profile',
} }
} else if (AppBskyActorDefs.isStatusView(subject)) { } else if (AppBskyActorDefs.isStatusView(subject)) {
const record = subject.record
if (
bsky.dangerousIsType<AppBskyActorStatus.Record>(
record,
AppBskyActorStatus.isRecord,
)
) {
return { return {
type: 'status', type: 'status',
uri: subject.uri, uri: subject.uri,
cid: subject.cid, cid: subject.cid,
nsid: 'app.bsky.actor.status', nsid: 'app.bsky.actor.status',
} }
}
} else if (AppBskyGraphDefs.isListView(subject)) { } else if (AppBskyGraphDefs.isListView(subject)) {
return { return {
type: 'list', type: 'list',