Browse Source

Fix undefined local variable (regression from #5114) (#5210)

pull/4/head
Yamagishi Kazutoshi 6 years ago
committed by Eugen Rochko
parent
commit
d40c9140e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/fetch_atom_service.rb

+ 1
- 1
app/services/fetch_atom_service.rb View File

@ -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

Loading…
Cancel
Save