mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-28 06:19:03 -05:00
Change FEP-521 processing to happen in addition of old security context instead of replacing it (#39725)
This commit is contained in:
@@ -271,7 +271,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
end
|
||||
|
||||
def public_keys
|
||||
@public_keys ||= fep_521a_public_keys.presence || legacy_public_keys
|
||||
@public_keys ||= (fep_521a_public_keys + legacy_public_keys).uniq { |key| key[:uri] }
|
||||
end
|
||||
|
||||
def legacy_public_keys
|
||||
@@ -305,8 +305,6 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
end
|
||||
|
||||
def fep_521a_public_keys
|
||||
return if @json['assertionMethod'].blank?
|
||||
|
||||
as_array(@json['assertionMethod']).take(MAX_PUBLIC_KEYS).filter_map do |value|
|
||||
next if value.nil?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user