diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-10-04 16:51:42 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-10-04 09:51:42 +0200 |
commit | d40c9140e8c02c63b675d9c9a2a44ee20c5a9f31 (patch) | |
tree | 3bc0823b56246fe9d39cd170c457b77854dc232d /app/services | |
parent | 632178d7543f48f493a63afce0d3c6243aac5fae (diff) |
Fix undefined local variable (regression from #5114) (#5210)
Diffstat (limited to 'app/services')
-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 bcf516bc3..7c54714a2 100644 --- a/app/services/fetch_atom_service.rb +++ b/app/services/fetch_atom_service.rb @@ -43,7 +43,7 @@ class FetchAtomService < BaseService if @response.mime_type == 'application/atom+xml' [@url, { prefetched_body: @response.to_s }, :ostatus] elsif ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].include?(@response.mime_type) - json = body_to_json(body) + json = body_to_json(@response.to_s) if supported_context?(json) && json['type'] == 'Person' && json['inbox'].present? [json['id'], { id: true }, :activitypub] else |