Skip to content

Decode Relationships.blockingByList under the lexicon's key - #61

Merged
germ-mark merged 1 commit into
mainfrom
claude/fix-blocking-by-list-key
Sep 25, 2026
Merged

germ-mark merged 1 commit into
mainfrom
claude/fix-blocking-by-list-key

Conversation

@germ-mark

Copy link
Copy Markdown
Contributor

Before: getRelationships responses never populated Relationships.blockingbyList. The coding key was blockingbyList, but the app.bsky.graph.defs#relationship lexicon uses blockingByList, so the viewer's own list blocks were always nil. germ-atproto-client's messaging check (checkIf(actor:canStartMessaging:)) relies on that field to refuse messaging when you list-block someone.

After: the key decodes and encodes as blockingByList. The Swift property keeps its current name, so this is a patch release that consumers pick up without source changes.

How: the fix is a raw value on the CodingKeys case. New RelationshipsCodingTests cover decode and encode, and both fail without the fix. The changeset is a patch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VoD379fQAwsCNaX4bRsvhq


Generated by Claude Code

The coding key was `blockingbyList`, so the viewer's own list blocks
never decoded from getRelationships. The property keeps its name for
source compatibility.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VoD379fQAwsCNaX4bRsvhq
@changeset-bot

changeset-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1408bb1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@germ-network/atprotoclient Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@germ-mark germ-mark self-assigned this Sep 25, 2026
@germ-mark
germ-mark marked this pull request as ready for review September 25, 2026 18:33
@germ-mark
germ-mark merged commit 24c769b into main Sep 25, 2026
22 checks passed
@germ-mark
germ-mark deleted the claude/fix-blocking-by-list-key branch September 25, 2026 18:35
@github-actions github-actions Bot mentioned this pull request Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants