mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28: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": {
|
case "FollowAccept": {
|
||||||
const followAccept = body as Lysand.FollowAccept;
|
const followAccept = body as Lysand.FollowAccept;
|
||||||
|
|
||||||
|
console.log(followAccept);
|
||||||
|
|
||||||
const account = await resolveUser(followAccept.author);
|
const account = await resolveUser(followAccept.author);
|
||||||
|
|
||||||
if (!account) {
|
if (!account) {
|
||||||
return errorResponse("Author not found", 400);
|
return errorResponse("Author not found", 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(account);
|
||||||
|
|
||||||
const relationship = await getRelationshipToOtherUser(
|
const relationship = await getRelationshipToOtherUser(
|
||||||
user,
|
user,
|
||||||
account,
|
account,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log(relationship);
|
||||||
|
|
||||||
if (!relationship.requested) {
|
if (!relationship.requested) {
|
||||||
return response("There is no follow request to accept", 200);
|
return response("There is no follow request to accept", 200);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue