[backend/federation] Improve logging in ActivityHandlerService

This commit is contained in:
Laura Hausmann 2024-04-25 18:23:30 +02:00
parent 40af9913b6
commit 1f3f7ad64d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -86,7 +86,8 @@ public class ActivityHandlerService(
} }
if (activity.Object is not ASTombstone tombstone) if (activity.Object is not ASTombstone tombstone)
throw GracefulException.UnprocessableEntity("Delete activity object is invalid"); throw GracefulException
.UnprocessableEntity($"Delete activity object is invalid: {activity.Object.Type}");
if (await db.Notes.AnyAsync(p => p.Uri == tombstone.Id)) if (await db.Notes.AnyAsync(p => p.Uri == tombstone.Id))
{ {
await noteSvc.DeleteNoteAsync(tombstone, resolvedActor); await noteSvc.DeleteNoteAsync(tombstone, resolvedActor);