about summary refs log tree commit diff
path: root/src/lib/moderation.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/moderation.ts')
-rw-r--r--src/lib/moderation.ts15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/moderation.ts b/src/lib/moderation.ts
index aadee0e74..6c08606ee 100644
--- a/src/lib/moderation.ts
+++ b/src/lib/moderation.ts
@@ -17,9 +17,18 @@ export function describeModerationCause(
     }
   }
   if (cause.type === 'blocking') {
-    return {
-      name: 'User Blocked',
-      description: 'You have blocked this user. You cannot view their content.',
+    if (cause.source.type === 'list') {
+      return {
+        name: `User Blocked by "${cause.source.list.name}"`,
+        description:
+          'You have blocked this user. You cannot view their content.',
+      }
+    } else {
+      return {
+        name: 'User Blocked',
+        description:
+          'You have blocked this user. You cannot view their content.',
+      }
     }
   }
   if (cause.type === 'blocked-by') {