Skip to content

Add MockAtmosphere.unfollow#78

Merged
germ-mark merged 3 commits into
mainfrom
llm/mock-unfollow
Jul 17, 2026
Merged

Add MockAtmosphere.unfollow#78
germ-mark merged 3 commits into
mainfrom
llm/mock-unfollow

Conversation

@germ-mark

Copy link
Copy Markdown
Contributor

Adds MockAtmosphere.unfollow(subjectDid:from:), mirroring follow/block — it delegates to MockPDS.unfollow to remove the matching follow record, so a test can undo a follow and construct a "not followed" social-graph state.

Stacked on germ-network/AtprotoClient#44 (which adds MockPDS.unfollow/MockRepo.unfollow). This PR keeps the AtprotoClient pin at from: 0.6.0, so CI won't build until that release lands and the pin is bumped to it — please bump the pin on/after merging #44. Verified locally against #44's branch via a temporary path override.

Motivation: germDM's anchor welcome route silence-and-relays a not-followed peer (distinct from a blocked peer, which drops); that path had no test because the harness couldn't produce the state.

Changeset: minor.

Mirrors follow/block: delegates to MockPDS.unfollow to remove a follow record,
so tests can construct a "not followed" social-graph state. Requires the
AtprotoClient release adding unfollow; the AtprotoClient pin must be bumped to
that version (kept at from: 0.6.0 here since the release isn't cut yet).
Verified locally against AtprotoClient's unfollow branch via a path override.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 14b007a

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/atprotooauth Minor

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 and others added 2 commits July 16, 2026 16:40
The automated release is blocked upstream, so `from: "0.6.0"` would resolve
to a version without `unfollow`. Pin the revision to the #44 merge commit
until AtprotoClient can cut a release.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The automated release recovered and cut 0.7.0, so replace the temporary
revision pin on the #44 merge commit with a `from: "0.7.0"` version pin.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@germ-mark
germ-mark merged commit 416a397 into main Jul 17, 2026
35 of 39 checks passed
@germ-mark
germ-mark deleted the llm/mock-unfollow branch July 17, 2026 00:52
@github-actions github-actions Bot mentioned this pull request Jul 17, 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.

1 participant