diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-10 16:25:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-10 16:25:11 -0700 |
commit | e5b7a894a3c8f5219751dc613052aa64ddc0102e (patch) | |
tree | e1c3bcfc73394e49ae143e155c70314f301e1daf /src/lib/moderation.ts | |
parent | ac6f6eef667a5e2801e56423058b7053f1705ebe (diff) | |
download | voidsky-e5b7a894a3c8f5219751dc613052aa64ddc0102e.tar.zst |
More useful block-state information in embeds (#1150)
* More useful block-state information in embeds * Tune copy
Diffstat (limited to 'src/lib/moderation.ts')
-rw-r--r-- | src/lib/moderation.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/moderation.ts b/src/lib/moderation.ts index 70c4444fe..a90c4dc9c 100644 --- a/src/lib/moderation.ts +++ b/src/lib/moderation.ts @@ -18,16 +18,23 @@ export function describeModerationCause( } if (cause.type === 'blocking') { return { - name: 'Blocked User', + name: 'User Blocked', description: 'You have blocked this user. You cannot view their content.', } } if (cause.type === 'blocked-by') { return { - name: 'Blocking You', + name: 'User Blocking You', description: 'This user has blocked you. You cannot view their content.', } } + if (cause.type === 'block-other') { + return { + name: 'Content Not Available', + description: + 'This content is not available because one of the users involved has blocked the other.', + } + } if (cause.type === 'muted') { if (cause.source.type === 'list') { return { |