fork of indigo with slightly nicer lexgen

Index alt text of imaged embedded in quote posts

Changed files
+17
search
+17
search/transform.go
··· 159 159 } 160 160 } 161 161 } 162 + 163 + if post.Embed != nil && 164 + post.Embed.EmbedRecordWithMedia != nil && 165 + post.Embed.EmbedRecordWithMedia.Media != nil && 166 + post.Embed.EmbedRecordWithMedia.Media.EmbedImages != nil && 167 + len(post.Embed.EmbedRecordWithMedia.Media.EmbedImages.Images) > 0 { 168 + embedImgCount += len(post.Embed.EmbedRecordWithMedia.Media.EmbedImages.Images) 169 + for _, img := range post.Embed.EmbedRecordWithMedia.Media.EmbedImages.Images { 170 + if img.Alt != "" { 171 + embedImgAltText = append(embedImgAltText, img.Alt) 172 + if containsJapanese(img.Alt) { 173 + embedImgAltTextJA = append(embedImgAltTextJA, img.Alt) 174 + } 175 + } 176 + } 177 + } 178 + 162 179 var selfLabels []string 163 180 if post.Labels != nil && post.Labels.LabelDefs_SelfLabels != nil { 164 181 for _, le := range post.Labels.LabelDefs_SelfLabels.Values {