From b11e4053db5b73f793029acaf2daecc3ef2ef27b Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Thu, 22 Dec 2022 16:41:06 -0500 Subject: [PATCH] server: use named export for acceptFollowRequest --- .../src/remote/activitypub/kernel/accept/follow.ts | 4 ++-- .../server/api/endpoints/following/requests/accept.ts | 2 +- .../src/services/following/requests/accept-all.ts | 4 ++-- .../backend/src/services/following/requests/accept.ts | 9 +++++++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/packages/backend/src/remote/activitypub/kernel/accept/follow.ts b/packages/backend/src/remote/activitypub/kernel/accept/follow.ts index 58249d2de..037f660c6 100644 --- a/packages/backend/src/remote/activitypub/kernel/accept/follow.ts +++ b/packages/backend/src/remote/activitypub/kernel/accept/follow.ts @@ -1,5 +1,5 @@ import { CacheableRemoteUser } from '@/models/entities/user.js'; -import accept from '@/services/following/requests/accept.js'; +import { acceptFollowRequest } from '@/services/following/requests/accept.js'; import { relayAccepted } from '@/services/relay.js'; import { IFollow } from '@/remote/activitypub/type.js'; import { DbResolver } from '@/remote/activitypub/db-resolver.js'; @@ -24,6 +24,6 @@ export default async (actor: CacheableRemoteUser, activity: IFollow): Promise { const request = await FollowRequests.findOneBy({ followeeId: followee.id, followerId: follower.id,