Fix some ActivityPub JSON bugs (#4796)
- Fix assumption that `url` is always a string. Handle it if it's an array of strings, array of objects, object, or string, both for accounts and for objects - `sharedInbox` is actually supposed to be under `endpoints`, handle both cases and adjust the serializer
Showing
- app/lib/activitypub/activity/create.rb 11 additions, 1 deletionapp/lib/activitypub/activity/create.rb
- app/serializers/activitypub/actor_serializer.rb 15 additions, 3 deletionsapp/serializers/activitypub/actor_serializer.rb
- app/services/activitypub/process_account_service.rb 14 additions, 4 deletionsapp/services/activitypub/process_account_service.rb
Loading
Please register or sign in to comment