mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

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

use different labels for `porn` and `sexual` (#3282)

* use different labels for `porn` and `sexual`

* newline

authored by hailey.at and committed by

GitHub a90566d8 bdf77f85

+9 -5
+5 -1
src/lib/moderation/useModerationCauseDescription.ts
··· 118 118 (labeler?.creator.handle ? '@' + labeler?.creator.handle : undefined) 119 119 if (!source) { 120 120 if (cause.label.src === BSKY_LABELER_DID) { 121 - source = 'Bluesky Moderation' 121 + source = 'Bluesky Moderation Service' 122 122 } else { 123 123 source = cause.label.src 124 124 } 125 125 } 126 + if (def.identifier === 'porn' || def.identifier === 'sexual') { 127 + strings.name = 'Adult Content' 128 + } 129 + 126 130 return { 127 131 icon: 128 132 def.identifier === '!no-unauthenticated'
+4 -4
src/view/com/posts/FeedErrorMessage.tsx
··· 46 46 if ( 47 47 typeof knownError !== 'undefined' && 48 48 knownError !== KnownError.Unknown && 49 - feedDesc.startsWith('feedgen') 49 + (feedDesc.startsWith('feedgen') || knownError === KnownError.FeedNSFPublic) 50 50 ) { 51 51 return ( 52 52 <FeedgenErrorMessage ··· 240 240 if (typeof error !== 'string') { 241 241 error = error.toString() 242 242 } 243 + if (error.includes(KnownError.FeedNSFPublic)) { 244 + return KnownError.FeedNSFPublic 245 + } 243 246 if (!feedDesc.startsWith('feedgen')) { 244 247 return KnownError.Unknown 245 248 } ··· 262 265 } 263 266 if (error.includes('feed provided an invalid response')) { 264 267 return KnownError.FeedgenBadResponse 265 - } 266 - if (error.includes(KnownError.FeedNSFPublic)) { 267 - return KnownError.FeedNSFPublic 268 268 } 269 269 return KnownError.FeedgenUnknown 270 270 }