Merge remote-tracking branch 'parent/main' into upstream-20231103

This commit is contained in:
KMY 2023-11-03 07:51:14 +09:00
commit 76c4acdd20
3 changed files with 116 additions and 4 deletions

View file

@ -9,6 +9,7 @@ class FanOutOnWriteService < BaseService
# @param [Hash] options
# @option options [Boolean] update
# @option options [Array<Integer>] silenced_account_ids
# @option options [Boolean] skip_notifications
def call(status, options = {})
@status = status
@account = status.account
@ -42,8 +43,11 @@ class FanOutOnWriteService < BaseService
def fan_out_to_local_recipients!
deliver_to_self!
notify_mentioned_accounts!
notify_about_update! if update?
unless @options[:skip_notifications]
notify_mentioned_accounts!
notify_about_update! if update?
end
case @status.visibility.to_sym
when :public, :unlisted, :public_unlisted, :login, :private