Damus
note1ymm40...
Phantasm profile picture
@silverpill You ideally should verify that AcceptFeatured refers to the type of the Object as expected, effectively doing the same thing anyway. You also need to add that as a supported type to your Acccept/Reject validator since they are basically the same, you have to modify your activity builder, if you have one, to create these new types if you wish to support creation and not just ingestion.

So instead of some long switch/case statement on an Object type, you now have a long list of Accept*/Reject* types that all have the same semantics just operating on different types. And more handling in your validators/builders.

The same argument can be made about Create/Update Activities which operate on a bunch of Object types. CreateNote/UpdateNote/UpdateActor/... doesn't make sense in my head as well.
1
silverpill · 3d
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqer26g8v2gdquxkyk43usmlk7gaqhle08p378ld3ldfd6p5yrt8us3qs2sp You ideally should verify that AcceptFeatured refers to the type of the Object as expected, effectively doing the same thing anyway. It is not the same thing because you skip one expen...