Skip to content
Snippets Groups Projects
Commit d0cdd5cf authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Accept actor object updates from all supported actor types (#7312)

parent cae93351
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class ActivityPub::Activity::Update < ActivityPub::Activity
SUPPORTED_TYPES = %w(Application Group Organization Person Service).freeze
def perform
update_account if equals_or_includes?(@object['type'], 'Person')
update_account if equals_or_includes_any?(@object['type'], SUPPORTED_TYPES)
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment