[backend/federation] Improve logging in ActivityHandlerService
This commit is contained in:
parent
40af9913b6
commit
1f3f7ad64d
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue