Change delivering to misskey setting to send as private
This commit is contained in:
parent
29180de672
commit
a4332babb5
10 changed files with 133 additions and 12 deletions
|
@ -27,8 +27,8 @@ class AccountStatusesFilter
|
|||
scope.merge!(hashtag_scope) if tagged?
|
||||
|
||||
scope.merge!(scope.where(searchability: :public)) if domain_block&.reject_send_not_public_searchability
|
||||
scope.merge!(scope.where.not(visibility: :public_unlisted)) if domain_block&.reject_send_public_unlisted || (domain_block&.detect_invalid_subscription && @account.user&.setting_reject_public_unlisted_subscription)
|
||||
scope.merge!(scope.where.not(visibility: :unlisted)) if domain_block&.detect_invalid_subscription && @account.user&.setting_unlisted_subscription
|
||||
scope.merge!(scope.where.not(visibility: :public_unlisted)) if domain_block&.reject_send_public_unlisted || (domain_block&.detect_invalid_subscription && @account.user&.reject_public_unlisted_subscription?)
|
||||
scope.merge!(scope.where.not(visibility: :unlisted)) if domain_block&.detect_invalid_subscription && @account.user&.unlisted_subscription?
|
||||
scope.merge!(scope.where(spoiler_text: ['', nil])) if domain_block&.reject_send_sensitive
|
||||
|
||||
scope
|
||||
|
|
|
@ -320,6 +320,14 @@ class User < ApplicationRecord
|
|||
settings.default_searchability || 'public'
|
||||
end
|
||||
|
||||
def reject_public_unlisted_subscription?
|
||||
settings.reject_public_unlisted_subscription
|
||||
end
|
||||
|
||||
def reject_unlisted_subscription?
|
||||
settings.reject_unlisted_subscription
|
||||
end
|
||||
|
||||
def allows_report_emails?
|
||||
settings.notification_emails['report']
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue