diff --git a/server/api/users/[uuid]/inbox/index.ts b/server/api/users/[uuid]/inbox/index.ts index 6f9bb946..49234cbb 100644 --- a/server/api/users/[uuid]/inbox/index.ts +++ b/server/api/users/[uuid]/inbox/index.ts @@ -217,17 +217,23 @@ export default apiRoute(async (req, matchedRoute, extraData) => { case "FollowAccept": { const followAccept = body as Lysand.FollowAccept; + console.log(followAccept); + const account = await resolveUser(followAccept.author); if (!account) { return errorResponse("Author not found", 400); } + console.log(account); + const relationship = await getRelationshipToOtherUser( user, account, ); + console.log(relationship); + if (!relationship.requested) { return response("There is no follow request to accept", 200); }