Ah yeah let's not override types
This commit is contained in:
@@ -46,6 +46,9 @@ export function DialogInner({
|
|||||||
if (!agent.session?.did) {
|
if (!agent.session?.did) {
|
||||||
throw new Error('Not logged in')
|
throw new Error('Not logged in')
|
||||||
}
|
}
|
||||||
|
if (!status.uri || !status.cid) {
|
||||||
|
throw new Error('Status is missing uri or cid')
|
||||||
|
}
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
logger.info('Submitting go live appeal', {
|
logger.info('Submitting go live appeal', {
|
||||||
@@ -57,8 +60,8 @@ export function DialogInner({
|
|||||||
reasonType: ToolsOzoneReportDefs.REASONAPPEAL,
|
reasonType: ToolsOzoneReportDefs.REASONAPPEAL,
|
||||||
subject: {
|
subject: {
|
||||||
$type: 'com.atproto.repo.strongRef',
|
$type: 'com.atproto.repo.strongRef',
|
||||||
uri: status.uri!,
|
uri: status.uri,
|
||||||
cid: status.cid!,
|
cid: status.cid,
|
||||||
},
|
},
|
||||||
reason: details,
|
reason: details,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -838,12 +838,7 @@ function LabelerCard({
|
|||||||
{title}
|
{title}
|
||||||
</Text>
|
</Text>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[a.text_sm, a.leading_snug, t.atoms.text_contrast_medium]}>
|
||||||
a.text_sm,
|
|
||||||
,
|
|
||||||
a.leading_snug,
|
|
||||||
t.atoms.text_contrast_medium,
|
|
||||||
]}>
|
|
||||||
<Trans>By {sanitizeHandle(labeler.creator.handle, '@')}</Trans>
|
<Trans>By {sanitizeHandle(labeler.creator.handle, '@')}</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -34,10 +34,11 @@ export function parseReportSubject(
|
|||||||
nsid: 'app.bsky.actor.profile',
|
nsid: 'app.bsky.actor.profile',
|
||||||
}
|
}
|
||||||
} else if (AppBskyActorDefs.isStatusView(subject)) {
|
} else if (AppBskyActorDefs.isStatusView(subject)) {
|
||||||
|
if (!subject.uri || !subject.cid) return
|
||||||
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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user