1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 09:15:38 +02:00
This commit is contained in:
syuilo
2021-12-09 23:58:30 +09:00
parent 0abe2dfee0
commit c69b72e199
573 changed files with 3318 additions and 3318 deletions

View File

@@ -56,7 +56,7 @@ export async function remoteReject(actor: Remote, follower: Local) {
async function removeFollowRequest(followee: Both, follower: Both) {
const request = await FollowRequests.findOne({
followeeId: followee.id,
followerId: follower.id
followerId: follower.id,
});
if (!request) return;
@@ -70,7 +70,7 @@ async function removeFollowRequest(followee: Both, follower: Both) {
async function removeFollow(followee: Both, follower: Both) {
const following = await Followings.findOne({
followeeId: followee.id,
followerId: follower.id
followerId: follower.id,
});
if (!following) return;
@@ -85,7 +85,7 @@ async function removeFollow(followee: Both, follower: Both) {
async function deliverReject(followee: Local, follower: Remote) {
const request = await FollowRequests.findOne({
followeeId: followee.id,
followerId: follower.id
followerId: follower.id,
});
const content = renderActivity(renderReject(renderFollow(follower, followee, request?.requestId || undefined), followee));
@@ -97,7 +97,7 @@ async function deliverReject(followee: Local, follower: Remote) {
*/
async function publishUnfollow(followee: Both, follower: Local) {
const packedFollowee = await Users.pack(followee.id, follower, {
detail: true
detail: true,
});
publishUserEvent(follower.id, 'unfollow', packedFollowee);