diff options
Diffstat (limited to 'src/components/moderation/LabelsOnMeDialog.tsx')
-rw-r--r-- | src/components/moderation/LabelsOnMeDialog.tsx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/components/moderation/LabelsOnMeDialog.tsx b/src/components/moderation/LabelsOnMeDialog.tsx index e581d22c1..b920a0d25 100644 --- a/src/components/moderation/LabelsOnMeDialog.tsx +++ b/src/components/moderation/LabelsOnMeDialog.tsx @@ -128,6 +128,9 @@ function Label({ const t = useTheme() const {_} = useLingui() const {labeler, strings} = useLabelInfo(label) + const sourceName = labeler + ? sanitizeHandle(labeler.creator.handle, '@') + : label.src return ( <View style={[ @@ -169,13 +172,12 @@ function Label({ <Trans> Source:{' '} <InlineLinkText + label={sourceName} to={makeProfileLink( labeler ? labeler.creator : {did: label.src, handle: ''}, )} onPress={() => control.close()}> - {labeler - ? sanitizeHandle(labeler.creator.handle, '@') - : label.src} + {sourceName} </InlineLinkText> </Trans> )} @@ -203,6 +205,9 @@ function AppealForm({ const isAccountReport = 'did' in subject const agent = useAgent() const gate = useGate() + const sourceName = labeler + ? sanitizeHandle(labeler.creator.handle, '@') + : label.src const {mutate, isPending} = useMutation({ mutationFn: async () => { @@ -260,12 +265,13 @@ function AppealForm({ <Trans> This appeal will be sent to{' '} <InlineLinkText + label={sourceName} to={makeProfileLink( labeler ? labeler.creator : {did: label.src, handle: ''}, )} onPress={() => control.close()} style={[a.text_md, a.leading_snug]}> - {labeler ? sanitizeHandle(labeler.creator.handle, '@') : label.src} + {sourceName} </InlineLinkText> . </Trans> |