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

Fix missing `mention` argument when processing incoming Create activities (#9114)

* Fix missing `mention` argument when processing incoming Create activities

* Fix typo (param → params)
parent 1e269519
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -90,11 +90,11 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
# If the payload was delivered to a specific inbox, the inbox owner must have
# access to it, unless they already have access to it anyway
return if @options[:delivered_to_account_id].nil? || @mentions.any? { mention.account_id == @options[:delivered_to_account_id] }
return if @options[:delivered_to_account_id].nil? || @mentions.any? { |mention| mention.account_id == @options[:delivered_to_account_id] }
@mentions << Mention.new(account_id: @options[:delivered_to_account_id], silent: true)
return unless @param[:visibility] == :direct
return unless @params[:visibility] == :direct
@params[:visibility] = :limited
end
......
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