going hogwild with the logging

This commit is contained in:
Jesse Wierzbinski 2024-04-09 21:45:20 -10:00
parent fc492c827b
commit dbb96027b8
No known key found for this signature in database

View file

@ -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);
}