Fix a bear check when the activity object is nil (#14981)
This commit is contained in:
		
							parent
							
								
									bb180921a3
								
							
						
					
					
						commit
						b4c4af18dc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -74,7 +74,7 @@ class ActivityPub::Activity
 | 
				
			||||||
    @object_uri ||= begin
 | 
					    @object_uri ||= begin
 | 
				
			||||||
      str = value_or_id(@object)
 | 
					      str = value_or_id(@object)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if str.start_with?('bear:')
 | 
					      if str&.start_with?('bear:')
 | 
				
			||||||
        Addressable::URI.parse(str).query_values['u']
 | 
					        Addressable::URI.parse(str).query_values['u']
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
        str
 | 
					        str
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue