Autofix Rubocop remaining Layout rules (#23679)
This commit is contained in:
@@ -226,6 +226,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
|
||||
def property_values
|
||||
return unless @json['attachment'].is_a?(Array)
|
||||
|
||||
as_array(@json['attachment']).select { |attachment| attachment['type'] == 'PropertyValue' }.map { |attachment| attachment.slice('name', 'value') }
|
||||
end
|
||||
|
||||
@@ -289,6 +290,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||
|
||||
def domain_block
|
||||
return @domain_block if defined?(@domain_block)
|
||||
|
||||
@domain_block = DomainBlock.rule_for(@domain)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user