Merge remote-tracking branch 'parent/main' into upstream-20240216

This commit is contained in:
KMY 2024-02-16 20:33:24 +09:00
commit 54ee9772fb
15 changed files with 156 additions and 49 deletions

View file

@ -44,7 +44,7 @@ class FetchResourceService < BaseService
@response_code = response.code
return nil if response.code != 200
if ['application/activity+json', 'application/ld+json'].include?(response.mime_type)
if valid_activitypub_content_type?(response)
body = response.body_with_limit
json = body_to_json(body)