Autofix Rubocop remaining Layout rules (#23679)
This commit is contained in:
		
					parent
					
						
							
								d2dcb6c45a
							
						
					
				
			
			
				commit
				
					
						717683d1c3
					
				
			
		
					 117 changed files with 265 additions and 261 deletions
				
			
		|  | @ -153,6 +153,7 @@ class ActivityPub::Activity | |||
|   def fetch_remote_original_status | ||||
|     if object_uri.start_with?('http') | ||||
|       return if ActivityPub::TagManager.instance.local_uri?(object_uri) | ||||
| 
 | ||||
|       ActivityPub::FetchRemoteStatusService.new.call(object_uri, id: true, on_behalf_of: @account.followers.local.first, request_id: @options[:request_id]) | ||||
|     elsif @object['url'].present? | ||||
|       ::FetchRemoteStatusService.new.call(@object['url'], request_id: @options[:request_id]) | ||||
|  |  | |||
|  | @ -32,7 +32,7 @@ class ActivityPub::LinkedDataSignature | |||
| 
 | ||||
|   def sign!(creator, sign_with: nil) | ||||
|     options = { | ||||
|       'type'    => 'RsaSignature2017', | ||||
|       'type' => 'RsaSignature2017', | ||||
|       'creator' => ActivityPub::TagManager.instance.key_uri_for(creator), | ||||
|       'created' => Time.now.utc.iso8601, | ||||
|     } | ||||
|  |  | |||
|  | @ -26,6 +26,7 @@ class ActivityPub::TagManager | |||
|       target.instance_actor? ? about_more_url(instance_actor: true) : short_account_url(target) | ||||
|     when :note, :comment, :activity | ||||
|       return activity_account_status_url(target.account, target) if target.reblog? | ||||
| 
 | ||||
|       short_account_status_url(target.account, target) | ||||
|     end | ||||
|   end | ||||
|  | @ -38,6 +39,7 @@ class ActivityPub::TagManager | |||
|       target.instance_actor? ? instance_actor_url : account_url(target) | ||||
|     when :note, :comment, :activity | ||||
|       return activity_account_status_url(target.account, target) if target.reblog? | ||||
| 
 | ||||
|       account_status_url(target.account, target) | ||||
|     when :emoji | ||||
|       emoji_url(target) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue