Improve PerformActivity error logging

This commit is contained in:
Laura Hausmann 2024-01-27 22:14:51 +01:00
parent 37e7f339bc
commit f32912d147
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -44,10 +44,10 @@ public class ActivityHandlerService(
//TODO: test if this actually works
if (activity.Object is ASActivity { Type: ASActivity.Types.Follow, Object: not null } undoActivity)
return Unfollow(undoActivity.Object, activity.Actor);
throw new NotImplementedException();
throw new NotImplementedException("Unsupported undo operation");
}
default: {
throw new NotImplementedException();
throw new NotImplementedException($"Activity type {activity.Type} is unknown");
}
}
}