Browse Source

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

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
e852872846
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/lib/activitypub/activity/reject.rb

+ 2
- 0
app/lib/activitypub/activity/reject.rb View File

@ -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

Loading…
Cancel
Save