mirror of
				https://github.com/mastodon/mastodon.git
				synced 2025-10-31 13:18:18 +00:00 
			
		
		
		
	Merge pull request from GHSA-2693-xr3m-jhqr
This commit is contained in:
		
							parent
							
								
									94893cf24f
								
							
						
					
					
						commit
						ff32475f5f
					
				|  | @ -75,7 +75,9 @@ class TranslateStatusService < BaseService | |||
| 
 | ||||
|       case source | ||||
|       when :content | ||||
|         status_translation.content = unwrap_emoji_shortcodes(translation.text).to_html | ||||
|         node = unwrap_emoji_shortcodes(translation.text) | ||||
|         Sanitize.node!(node, Sanitize::Config::MASTODON_STRICT) | ||||
|         status_translation.content = node.to_html | ||||
|       when :spoiler_text | ||||
|         status_translation.spoiler_text = unwrap_emoji_shortcodes(translation.text).content | ||||
|       when Poll::Option | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Claire
						Claire