Fix lint
This commit is contained in:
parent
0199608b87
commit
210b23cfc7
4 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ class ActivityPub::Parser::CustomEmojiParser
|
|||
end
|
||||
|
||||
def is_sensitive # rubocop:disable Naming/PredicateName
|
||||
(@json['isSensitive'].presence || false)
|
||||
@json['isSensitive'].presence || false
|
||||
end
|
||||
|
||||
def license
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
class Admin::SensitiveWord
|
||||
class << self
|
||||
def sensitive?(text, spoiler_text)
|
||||
exposure_text = (spoiler_text.presence || text)
|
||||
exposure_text = spoiler_text.presence || text
|
||||
(spoiler_text.blank? && sensitive_words.any? { |word| include?(text, word) }) ||
|
||||
sensitive_words_for_full.any? { |word| include?(exposure_text, word) }
|
||||
end
|
||||
|
|
|
@ -82,7 +82,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
|||
@account.suspended_at = domain_block.created_at if auto_suspend?
|
||||
@account.suspension_origin = :local if auto_suspend?
|
||||
@account.silenced_at = domain_block.created_at if auto_silence?
|
||||
@account.searchability = :direct # not null
|
||||
@account.searchability = :direct # not null
|
||||
|
||||
set_immediate_protocol_attributes!
|
||||
|
||||
|
@ -448,7 +448,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
|||
shortcode = tag['name'].delete(':')
|
||||
image_url = tag['icon']['url']
|
||||
uri = tag['id']
|
||||
sensitive = (tag['isSensitive'].presence || false)
|
||||
sensitive = tag['isSensitive'].presence || false
|
||||
license = tag['license']
|
||||
updated = tag['updated']
|
||||
emoji = CustomEmoji.find_by(shortcode: shortcode, domain: @account.domain)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
%hr.spacer/
|
||||
|
||||
.fields-group
|
||||
= f.input :filter_action, as: :radio_buttons, collection: %i(warn hide), include_blank: false, wrapper: :with_block_label, label_method: ->(action) { filter_action_label(action) }, hint: t('simple_form.hints.filters.action'), required: true
|
||||
= f.input :filter_action, as: :radio_buttons, collection: %i(half_warn warn hide), include_blank: false, wrapper: :with_block_label, label_method: ->(action) { filter_action_label(action) }, hint: t('simple_form.hints.filters.action'), required: true
|
||||
|
||||
.fields-group
|
||||
= f.input :exclude_follows, wrapper: :with_label, kmyblue: true, label: t('simple_form.labels.filters.options.exclude_follows')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue