go-fed / apcore

Golang ActivityPub Server Framework
GNU Affero General Public License v3.0
104 stars 10 forks source link

support user Preferences in general (& specifically for OnFollow) #31

Closed cjslep closed 3 years ago

cjslep commented 3 years ago

This entails:

cjslep commented 3 years ago

I'm thinking of having the arbitrary payload internally just be handled as a json.RawMessage and letting the app.Application supply an arbitrary struct which will be serialized-from/deserialized-into as necessary, so clients can just supply a concrete struct instance. This has the added benefit of delaying handling most of the JSON serialization/deserialization overhead during AP request handling.

cjslep commented 3 years ago

7217bbaee149d9a867e80ffafe0c8189a009b4e8