Change how hashtags are normalized (#18795)
* Change how hashtags are normalized * Fix tests
This commit is contained in:
		
					parent
					
						
							
								12ed2d793b
							
						
					
				
			
			
				commit
				
					
						e7aa2be828
					
				
			
		
					 29 changed files with 193 additions and 51 deletions
				
			
		|  | @ -10,11 +10,11 @@ class ActivityPub::HashtagSerializer < ActivityPub::Serializer | |||
|   end | ||||
| 
 | ||||
|   def name | ||||
|     "##{object.name}" | ||||
|     "##{object.display_name}" | ||||
|   end | ||||
| 
 | ||||
|   def href | ||||
|     if object.class.name == 'FeaturedTag' | ||||
|     if object.instance_of?(FeaturedTag) | ||||
|       short_account_tag_url(object.account, object.tag) | ||||
|     else | ||||
|       tag_url(object) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue