mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-13 07:48:15 +00:00
Compare commits
2 Commits
f4e4dd330a
...
ad7c53f3c8
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ad7c53f3c8 | ||
![]() |
2968211f44 |
|
@ -44,7 +44,7 @@ class ActivityPub::Dereferencer
|
||||||
|
|
||||||
req = Request.new(:get, uri)
|
req = Request.new(:get, uri)
|
||||||
|
|
||||||
req.add_headers('Accept' => 'application/activity+json, application/ld+json')
|
req.add_headers('Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams", application/activity+json')
|
||||||
req.add_headers(headers) if headers
|
req.add_headers(headers) if headers
|
||||||
req.on_behalf_of(@signature_actor) if @signature_actor
|
req.on_behalf_of(@signature_actor) if @signature_actor
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
class FetchResourceService < BaseService
|
class FetchResourceService < BaseService
|
||||||
include JsonLdHelper
|
include JsonLdHelper
|
||||||
|
|
||||||
ACCEPT_HEADER = 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams", text/html;q=0.1'
|
ACCEPT_HEADER = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams", application/activity+json, text/html;q=0.1'
|
||||||
ACTIVITY_STREAM_LINK_TYPES = ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].freeze
|
ACTIVITY_STREAM_LINK_TYPES = ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].freeze
|
||||||
|
|
||||||
attr_reader :response_code
|
attr_reader :response_code
|
||||||
|
|
Loading…
Reference in New Issue
Block a user