mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
parent
41a01bec23
commit
e852872846
@ -17,6 +17,8 @@ class ActivityPub::Activity::Reject < ActivityPub::Activity
|
|||||||
|
|
||||||
follow_request = FollowRequest.find_by(account: target_account, target_account: @account)
|
follow_request = FollowRequest.find_by(account: target_account, target_account: @account)
|
||||||
follow_request&.reject!
|
follow_request&.reject!
|
||||||
|
|
||||||
|
UnfollowService.new.call(target_account, @account) if target_account.following?(@account)
|
||||||
end
|
end
|
||||||
|
|
||||||
def target_uri
|
def target_uri
|
||||||
|
Loading…
Reference in New Issue
Block a user