From 618f9c6dd014c9fce68233bd57b4189b8fb755dc Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Thu, 6 Mar 2025 19:31:55 +0300 Subject: [PATCH] Update BlockedBadge.svelte --- src/components/BlockedBadge.svelte | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/BlockedBadge.svelte b/src/components/BlockedBadge.svelte index 03880c035..4aa027453 100644 --- a/src/components/BlockedBadge.svelte +++ b/src/components/BlockedBadge.svelte @@ -3,12 +3,20 @@ export let channel + let reason + const messages = { + dmca: 'The channel has been added to our blocklist due to the claims of the copyright holder', + nsfw: 'The channel has been added to our blocklist due to NSFW content' + } + const blocklistRefs = channel.blocklist_records .map(record => { const parts = record.ref.split('/') const issueId = parts.pop() const prefix = record.ref.includes('/issues/') ? '#' : '' + reason = record.reason + return `${prefix}${issueId}` }) .join(', ') @@ -17,7 +25,7 @@