Skip to content

Reject existing Follow in addition to sending a Block#9811

Merged
Gargron merged 1 commit intomastodon:masterfrom
ClearlyClaire:fixes/block-unfollow
Jan 18, 2019
Merged

Reject existing Follow in addition to sending a Block#9811
Gargron merged 1 commit intomastodon:masterfrom
ClearlyClaire:fixes/block-unfollow

Conversation

@ClearlyClaire
Copy link
Copy Markdown
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
Comment thread app/services/unfollow_service.rb Outdated
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
Copy Markdown
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