Fix handling of inLanguage attribute in preview card processing (#27423)
				
					
				
			This commit is contained in:
		
							parent
							
								
									8be33d4316
								
							
						
					
					
						commit
						13205b54fd
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		|  | @ -36,7 +36,8 @@ class LinkDetailsExtractor | |||
|     end | ||||
| 
 | ||||
|     def language | ||||
|       json['inLanguage'] | ||||
|       lang = json['inLanguage'] | ||||
|       lang.is_a?(Hash) ? (lang['alternateName'] || lang['name']) : lang | ||||
|     end | ||||
| 
 | ||||
|     def type | ||||
|  |  | |||
		Reference in a new issue