Bluesky app fork with some witchin' additions 馃挮 witchsky.app
bluesky fork client
119
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 22 lines 554 B view raw
1import {AppBskyFeedDefs} from '@atproto/api' 2 3export const CONTENT_LABELS = ['porn', 'sexual', 'nudity', 'graphic-media'] 4 5export function labelsToInfo( 6 labels?: AppBskyFeedDefs.PostView['labels'], 7): string | undefined { 8 const label = labels?.find(label => CONTENT_LABELS.includes(label.val)) 9 10 switch (label?.val) { 11 case 'porn': 12 case 'sexual': 13 return 'Adult Content' 14 case 'nudity': 15 return 'Non-sexual Nudity' 16 case 'gore': 17 case 'graphic-media': 18 return 'Graphic Media' 19 default: 20 return undefined 21 } 22}