Mirror — see github.com/blacksky-algorithms/blacksky.community
6
fork

Configure Feed

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

Fix Blacksky labeler missing from report dialog

The additionalLabelers variable was assigned as a reference to
MODERATION_AUTHORITIES_DIDS instead of a copy. When BLACKSKY_LABELER
was pushed onto it, it mutated the original array, causing
isNonConfigurableModerationAuthority() to return true for the
Blacksky labeler DID. The report dialog filters out non-configurable
authorities, so Blacksky was excluded from the moderation service
selection.

Fix: spread copy the array before mutating it.

+1 -1
+1 -1
src/state/session/additional-moderation-authorities.ts
··· 72 72 73 73 export function configureAdditionalModerationAuthorities() { 74 74 // Without geolocation, default to all moderation authorities 75 - let additionalLabelers: string[] = MODERATION_AUTHORITIES_DIDS 75 + let additionalLabelers: string[] = [...MODERATION_AUTHORITIES_DIDS] 76 76 77 77 if (__DEV__) { 78 78 additionalLabelers = []