[backend/federation] Improve error logging for invalid accept activities

This commit is contained in:
Laura Hausmann 2024-09-24 00:08:56 +02:00
parent 1e650d8649
commit 0c39101046
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -209,7 +209,7 @@ public class ActivityHandlerService(
if (await db.Followings.AnyAsync(p => p.Followee == actor && p.FollowerId == ids[0]))
return;
throw GracefulException.UnprocessableEntity($"No follow request matching follower '{ids[0]}'" +
throw GracefulException.UnprocessableEntity($"No follow or follow request matching follower '{ids[0]}'" +
$"and followee '{actor.Id}' found");
}