]> cat aescling's git repositories - mastodon.git/commit
Fix some ActivityPub JSON bugs (#4796)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 4 Sep 2017 16:26:33 +0000 (18:26 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2017 16:26:33 +0000 (18:26 +0200)
commit9b50a9dd835c3a08effc86a6ef3e29e3a16e3d27
treeb98173b3fe233f2d4d61c1f8caaac7f32b27f572
parent2293466edd0972c2069628c55baec9b0cb861445
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
app/lib/activitypub/activity/create.rb
app/serializers/activitypub/actor_serializer.rb
app/services/activitypub/process_account_service.rb