From dbb96027b8e114d905e39493a340f7480b8bf869 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 9 Apr 2024 21:45:20 -1000 Subject: [PATCH] going hogwild with the logging --- server/api/users/[uuid]/inbox/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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); }