[backend/federation] Log type of unsupported undo activities

This commit is contained in:
Laura Hausmann 2024-03-29 16:11:40 +01:00
parent 07eba89fa0
commit ddfa108677
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -159,7 +159,8 @@ public class ActivityHandlerService(
await UnblockAsync(resolvedActor, blockee);
return;
default:
throw GracefulException.UnprocessableEntity("Undo activity object is invalid");
throw GracefulException
.UnprocessableEntity($"Undo activity object is invalid: {activity.Object.Type}");
}
}
case ASLike like:
@ -427,7 +428,7 @@ public class ActivityHandlerService(
p.Notifiee == followee &&
p.Notifier == follower)
.ExecuteDeleteAsync();
eventSvc.RaiseUserUnfollowed(this, follower, followee);
}
}