Fix image-only posts not being visible in custom feeds.
This commit is contained in:
		
							parent
							
								
									8d03ab9399
								
							
						
					
					
						commit
						8f74c7b949
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -213,6 +213,12 @@ export class FeedTuner { | ||||||
|             hasProp(item.post.record, 'text') && |             hasProp(item.post.record, 'text') && | ||||||
|             typeof item.post.record.text === 'string' |             typeof item.post.record.text === 'string' | ||||||
|           ) { |           ) { | ||||||
|  |             // Treat empty text the same as no text.
 | ||||||
|  |             if (item.post.record.text.length === 0) { | ||||||
|  |               hasPreferredLang = true | ||||||
|  |               break | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|             const res = lande(item.post.record.text) |             const res = lande(item.post.record.text) | ||||||
| 
 | 
 | ||||||
|             if (langsCode3.includes(res[0][0])) { |             if (langsCode3.includes(res[0][0])) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue