]> cat aescling's git repositories - mastodon.git/commit
Reject existing Follow in addition to sending a Block (#9811)
authorThibG <thib@sitedethib.com>
Fri, 18 Jan 2019 14:57:19 +0000 (15:57 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 18 Jan 2019 14:57:19 +0000 (15:57 +0100)
commitaeb124491d169c2a75ee6c20520859dc865511ed
treec587e1c50e992e25ab11b838cec4542c24edebdf
parent75b1488cf4dfe54260deff8df20e5e9b9fd90aea
Reject existing Follow in addition to sending a Block (#9811)

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.
app/services/unfollow_service.rb
spec/services/unfollow_service_spec.rb