Skip to content

Commit e06f277

Browse files
committed
Fix cross-jurisdiction label blocking: only subscribe to Blacksky labeler
Without geolocation, subscribing to all country labelers causes labels from irrelevant jurisdictions to block content for all users. For example, a !hide label from the Brazil labeler on @pfrazee.com was blocking his content for all blacksky.community users regardless of location.
1 parent e34cbec commit e06f277

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/state/session/additional-moderation-authorities.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ export function isNonConfigurableModerationAuthority(did: string) {
7171
}
7272

7373
export function configureAdditionalModerationAuthorities() {
74-
// Without geolocation, default to all moderation authorities
75-
let additionalLabelers: string[] = [...MODERATION_AUTHORITIES_DIDS]
76-
77-
if (__DEV__) {
78-
additionalLabelers = []
79-
}
74+
// Only subscribe to the Blacksky labeler. Country labelers require geolocation
75+
// to apply correctly -- without it, subscribing to all of them causes labels
76+
// from irrelevant jurisdictions to block content for all users (e.g. a Brazil
77+
// labeler !hide on a US account would block that account for everyone).
78+
let additionalLabelers: string[] = []
8079

8180
additionalLabelers.push(BLACKSKY_LABELER)
8281
const appLabelers = Array.from(

0 commit comments

Comments
 (0)