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 @@