]> cat aescling's git repositories - mastodon.git/commit
Support Actors/Statuses with multiple types (#7305)
authorSurinna Curtis <ekiru.0@gmail.com>
Wed, 2 May 2018 10:40:24 +0000 (05:40 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 2 May 2018 10:40:24 +0000 (12:40 +0200)
commitdc786c0cf4467ade8db7d8b17e09f16923bfc1e8
tree955931c945e9137b4883571cfd2d23bec1d59397
parent86efccce2a874d16aa783d989ff4824bcfac40b5
Support Actors/Statuses with multiple types (#7305)

* Add equals_or_includes_any? helper in JsonLdHelper

* Support arrays in JSON-LD type fields for actors/tags/objects.

* Spec for resolving accounts with extension types

* Style tweaks for codeclimate
12 files changed:
app/helpers/jsonld_helper.rb
app/lib/activitypub/activity/create.rb
app/lib/activitypub/activity/update.rb
app/services/activitypub/fetch_remote_account_service.rb
app/services/activitypub/fetch_remote_key_service.rb
app/services/activitypub/fetch_remote_status_service.rb
app/services/activitypub/process_account_service.rb
app/services/fetch_atom_service.rb
app/services/resolve_account_service.rb
app/services/resolve_url_service.rb
spec/fixtures/requests/activitypub-actor-individual.txt [new file with mode: 0644]
spec/services/resolve_account_service_spec.rb