Fix: send appeals to the right labeler

This commit is contained in:
Paul Frazee
2024-03-13 14:27:03 -07:00
parent 7d8f373d2b
commit 1f8acd92a2
+10 -8
View File
@@ -180,14 +180,16 @@ function AppealForm({
const $type = !isAccountReport const $type = !isAccountReport
? 'com.atproto.repo.strongRef' ? 'com.atproto.repo.strongRef'
: 'com.atproto.admin.defs#repoRef' : 'com.atproto.admin.defs#repoRef'
await getAgent().createModerationReport({ await getAgent()
reasonType: ComAtprotoModerationDefs.REASONAPPEAL, .withProxy('atproto_labeler', label.src)
subject: { .createModerationReport({
$type, reasonType: ComAtprotoModerationDefs.REASONAPPEAL,
...subject, subject: {
}, $type,
reason: details, ...subject,
}) },
reason: details,
})
Toast.show(_(msg`Appeal submitted.`)) Toast.show(_(msg`Appeal submitted.`))
} finally { } finally {
control.close() control.close()