Skip to content
Snippets Groups Projects
Unverified Commit e8528728 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix #5708: Reject->Follow will remove the follow if it exists (#6571)

parent 41a01bec
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ class ActivityPub::Activity::Reject < ActivityPub::Activity
follow_request = FollowRequest.find_by(account: target_account, target_account: @account)
follow_request&.reject!
UnfollowService.new.call(target_account, @account) if target_account.following?(@account)
end
def target_uri
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment