warriordog / ActivityPubSharp

Modular implementation of ActivityPub in C#
https://warriordog.github.io/ActivityPubSharp/
Mozilla Public License 2.0
45 stars 9 forks source link

Outgoing Content-Type is not scoped #127

Open warriordog opened 9 months ago

warriordog commented 9 months ago

According to the spec, the acceptable content types are:

The latter type is described as optional, and implementations are not required to support it. For best results, it's recommended to accept either form but use the first for outgoing requests.

Our implementation currently supports only the second, unscoped type along with these extra types for maximum compatibility:

This works against all tested Fedi implementations, but we should include the profile for better spec-compliance. This may require a refactor of ActivityPubOptions.

See also: https://www.w3.org/TR/activitypub/#client-to-server-interactions

puzzler995 commented 7 months ago

I'll pick this one up and work on it