diff --git a/.changeset/spotty-ducks-lie.md b/.changeset/spotty-ducks-lie.md new file mode 100644 index 00000000000..af8655b9649 --- /dev/null +++ b/.changeset/spotty-ducks-lie.md @@ -0,0 +1,5 @@ +--- +'@atproto/api': patch +--- + +Fix to the application of the no-unauthenticated label diff --git a/packages/api/definitions/post-moderation-behaviors.json b/packages/api/definitions/post-moderation-behaviors.json index 302304b217d..c2a268ce5f5 100644 --- a/packages/api/definitions/post-moderation-behaviors.json +++ b/packages/api/definitions/post-moderation-behaviors.json @@ -271,6 +271,12 @@ "author": "alice", "labels": { "profile": ["!no-unauthenticated"] }, "behaviors": { + "content": { + "cause": "label:!no-unauthenticated", + "filter": true, + "blur": true, + "noOverride": true + }, "avatar": { "cause": "label:!no-unauthenticated", "blur": true, diff --git a/packages/api/definitions/profile-moderation-behaviors.json b/packages/api/definitions/profile-moderation-behaviors.json index d76cd18bfc4..2d1e9bc8da9 100644 --- a/packages/api/definitions/profile-moderation-behaviors.json +++ b/packages/api/definitions/profile-moderation-behaviors.json @@ -185,6 +185,12 @@ "author": "alice", "labels": { "profile": ["!no-unauthenticated"] }, "behaviors": { + "account": { + "cause": "label:!no-unauthenticated", + "filter": true, + "blur": true, + "noOverride": true + }, "profile": { "cause": "label:!no-unauthenticated", "blur": true, diff --git a/packages/api/docs/moderation-behaviors/posts.md b/packages/api/docs/moderation-behaviors/posts.md index 918386ea50a..a76ff8b19df 100644 --- a/packages/api/docs/moderation-behaviors/posts.md +++ b/packages/api/docs/moderation-behaviors/posts.md @@ -286,10 +286,10 @@ Key: Imperative label ('!no-unauthenticated') on author profile when logged out - +❌ - +🚫 🚫 diff --git a/packages/api/docs/moderation-behaviors/profiles.md b/packages/api/docs/moderation-behaviors/profiles.md index 61bbf77c5da..f3c45e8c556 100644 --- a/packages/api/docs/moderation-behaviors/profiles.md +++ b/packages/api/docs/moderation-behaviors/profiles.md @@ -152,9 +152,10 @@ Key: Imperative label ('!no-unauthenticated') on profile when logged out - +❌ +🚫 diff --git a/packages/api/src/moderation/subjects/account.ts b/packages/api/src/moderation/subjects/account.ts index 8c763735a79..d8cda1b6408 100644 --- a/packages/api/src/moderation/subjects/account.ts +++ b/packages/api/src/moderation/subjects/account.ts @@ -41,6 +41,8 @@ export function filterAccountLabels(labels?: Label[]): Label[] { return [] } return labels.filter( - (label) => !label.uri.endsWith('/app.bsky.actor.profile/self'), + (label) => + !label.uri.endsWith('/app.bsky.actor.profile/self') || + label.val === '!no-unauthenticated', ) }