Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject existing Follow in addition to sending a Block #9811

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

ClearlyClaire
Copy link
Contributor

@ClearlyClaire ClearlyClaire commented Jan 14, 2019

Mastodon expects remote servers to remove follow relationships upon receiving
a Block. However, the spec only evokes Block activities in a C2S context, never
in a S2S context.

This PR, in addition to federating the Block, explicitly sends a Reject for any
affected follow relationship, which makes a bit more sense with regards to the
spec.

Marked Work in Progress as I have to check the generated Activity.

@ClearlyClaire ClearlyClaire added the work in progress Not to be merged, currently being worked on label Jan 14, 2019
@ClearlyClaire ClearlyClaire force-pushed the fixes/block-unfollow branch 4 times, most recently from 0068f25 to b798b93 Compare January 14, 2019 20:41
@ClearlyClaire ClearlyClaire removed the work in progress Not to be merged, currently being worked on label Jan 14, 2019
app/services/unfollow_service.rb Outdated Show resolved Hide resolved
Mastodon expects remote servers to remove follow relationships upon receiving
a Block. However, the spec only evokes Block activities in a C2S context, never
in a S2S context.

This PR, in addition to federating the Block, explicitly sends a Reject for any
affected follow relationship, which makes a bit more sense with regards to the
spec.
@ClearlyClaire
Copy link
Contributor Author

(Addressed comments)

@Gargron Gargron merged commit aeb1244 into mastodon:master Jan 18, 2019
@ClearlyClaire ClearlyClaire deleted the fixes/block-unfollow branch March 14, 2019 15:46
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
Mastodon expects remote servers to remove follow relationships upon receiving
a Block. However, the spec only evokes Block activities in a C2S context, never
in a S2S context.

This PR, in addition to federating the Block, explicitly sends a Reject for any
affected follow relationship, which makes a bit more sense with regards to the
spec.
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
Mastodon expects remote servers to remove follow relationships upon receiving
a Block. However, the spec only evokes Block activities in a C2S context, never
in a S2S context.

This PR, in addition to federating the Block, explicitly sends a Reject for any
affected follow relationship, which makes a bit more sense with regards to the
spec.
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