mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
going hogwild with the logging
This commit is contained in:
parent
fc492c827b
commit
dbb96027b8
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue