this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

search: ensure text_ja is optional

The `omitempty` logic was probably already working, but this makes it
more explicit and the code more readable.

Thanks Jaz!

+2 -2
+2 -2
search/transform.go
··· 37 37 RecordCID string `json:"record_cid"` 38 38 CreatedAt *string `json:"created_at,omitempty"` 39 39 Text string `json:"text"` 40 - TextJA string `json:"text_ja,omitempty"` 40 + TextJA *string `json:"text_ja,omitempty"` 41 41 LangCode []string `json:"lang_code,omitempty"` 42 42 LangCodeIso2 []string `json:"lang_code_iso2,omitempty"` 43 43 MentionDID []string `json:"mention_did,omitempty"` ··· 196 196 } 197 197 198 198 if containsJapanese(post.Text) { 199 - doc.TextJA = post.Text 199 + doc.TextJA = &post.Text 200 200 } 201 201 202 202 if post.CreatedAt != "" {