diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-09 17:34:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 17:34:16 -0700 |
commit | 03d152675ee1ce208856498acf7285fbf07fd45b (patch) | |
tree | 70803ebe16276b3a6b7c350f78d069641a0a6118 /src/view/com/modals/ModerationDetails.tsx | |
parent | 48813a96d686d97009e260d0a87f32d28a631052 (diff) | |
download | voidsky-03d152675ee1ce208856498acf7285fbf07fd45b.tar.zst |
Add self-labeling controls (#1141)
* Add self-label modal * Use the shield-exclamation icon consistently on post moderation * Wire up self-labeling * Bump @atproto/api@0.6.0 * Bump @atproto/dev-env@^0.2.3 * Add e2e test for self-labeling * Fix types
Diffstat (limited to 'src/view/com/modals/ModerationDetails.tsx')
-rw-r--r-- | src/view/com/modals/ModerationDetails.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/com/modals/ModerationDetails.tsx b/src/view/com/modals/ModerationDetails.tsx index abeb2fdf4..598d26924 100644 --- a/src/view/com/modals/ModerationDetails.tsx +++ b/src/view/com/modals/ModerationDetails.tsx @@ -35,10 +35,7 @@ export function Component({ name = 'Account Blocks You' description = 'This user has blocked you. You cannot view their content.' } else if (moderation.cause.type === 'muted') { - if (moderation.cause.source.type === 'user') { - name = 'Account Muted' - description = 'You have muted this user.' - } else { + if (moderation.cause.source.type === 'list') { const list = moderation.cause.source.list name = <>Account Muted by List</> description = ( @@ -53,6 +50,9 @@ export function Component({ list which you have muted. </> ) + } else { + name = 'Account Muted' + description = 'You have muted this user.' } } else { name = moderation.cause.labelDef.strings[context].en.name |