mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-18 00:54:49 +01:00
parent
632178d754
commit
d40c9140e8
@ -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…
Reference in New Issue
Block a user