mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix missing mention
argument when processing incoming Create activities (#9114)
* Fix missing `mention` argument when processing incoming Create activities * Fix typo (param → params)
This commit is contained in:
parent
1e2695198a
commit
82e7988afc
@ -90,11 +90,11 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||||||
|
|
||||||
# If the payload was delivered to a specific inbox, the inbox owner must have
|
# 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
|
# 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)
|
@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
|
@params[:visibility] = :limited
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user