Skip to content
Extraits de code Groupes Projets
Valider d0cdd5cf rédigé par ThibG's avatar ThibG Validation de Eugen Rochko
Parcourir les fichiers

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

parent cae93351
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# frozen_string_literal: true # frozen_string_literal: true
class ActivityPub::Activity::Update < ActivityPub::Activity class ActivityPub::Activity::Update < ActivityPub::Activity
SUPPORTED_TYPES = %w(Application Group Organization Person Service).freeze
def perform def perform
update_account if equals_or_includes?(@object['type'], 'Person') update_account if equals_or_includes_any?(@object['type'], SUPPORTED_TYPES)
end end
private private
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter