diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-02 02:10:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 02:10:53 +0200 |
commit | f890d2a766ae4c7fd8611dd4f3a15a13408f68c3 (patch) | |
tree | 68692346b56414d6f84855d0e0ddb76832589892 /app/services/fetch_atom_service.rb | |
parent | 33513753b979dc0526cfeb31bcd4a5bad2e952f1 (diff) |
Support all ActivityPub actor types (#6997)
Fix #6973
Diffstat (limited to 'app/services/fetch_atom_service.rb')
-rw-r--r-- | app/services/fetch_atom_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fetch_atom_service.rb b/app/services/fetch_atom_service.rb index 87076cc07..0444baf74 100644 --- a/app/services/fetch_atom_service.rb +++ b/app/services/fetch_atom_service.rb @@ -42,7 +42,7 @@ class FetchAtomService < BaseService elsif ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].include?(response.mime_type) body = response.body_with_limit json = body_to_json(body) - if supported_context?(json) && json['type'] == 'Person' && json['inbox'].present? + if supported_context?(json) && ActivityPub::FetchRemoteAccountService::SUPPORTED_TYPES.include?(json['type']) && json['inbox'].present? [json['id'], { prefetched_body: body, id: true }, :activitypub] elsif supported_context?(json) && expected_type?(json) [json['id'], { prefetched_body: body, id: true }, :activitypub] |