Skip to content

Commit

Permalink
ブロック時にRejectFollowもするように Resolve #2349
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 authored and fs5m8 committed Dec 25, 2022
1 parent a333f60 commit 755fab1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/blocking/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,10 @@ async function unFollow(follower: User, followee: User) {
const content = renderActivity(renderUndo(renderFollow(follower, followee), follower));
deliver(follower, content, followee.inbox);
}

// リモートからフォローを受けていたらReject送信
if (Users.isRemoteUser(follower) && Users.isLocalUser(followee)) {
const content = renderActivity(renderReject(renderFollow(follower, followee), followee));
deliver(followee, content, follower.inbox);
}
}

0 comments on commit 755fab1

Please sign in to comment.