this repo has no description
0
fork

Configure Feed

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

update query structs to match proposed lexicon

+17 -13
+17 -13
search/query.go
··· 51 51 } 52 52 53 53 type PostSearchQuery struct { 54 - Query string `json:"query"` 55 - Offset int `json:"offset"` 56 - Size int `json:"size"` 57 - From *time.Time `json:"from"` 58 - To *time.Time `json:"to"` 59 - Actors []string `json:"actors"` 60 - Tags []string `json:"tags"` 61 - Langs []string `json:"langs"` 54 + Query string `json:"q"` 55 + Sort string `json:"sort"` 56 + Author *syntax.DID `json:"author"` 57 + Since *syntax.Datetime `json:"since"` 58 + Until *syntax.Datetime `json:"until"` 59 + Mentions *syntax.DID `json:"mentions"` 60 + Lang *syntax.Language `json:"lang"` 61 + Domain string `json:"domain"` 62 + URL string `json:"url"` 63 + Tag string `json:"tag"` 64 + Offset int `json:"offset"` 65 + Size int `json:"size"` 62 66 } 63 67 64 68 type ActorSearchQuery struct { 65 - Query string `json:"query"` 66 - Following []string `json:"following"` 67 - Offset int `json:"offset"` 68 - Size int `json:"size"` 69 - Typeahead bool `json:"typeahead"` 69 + Query string `json:"q"` 70 + Typeahead bool `json:"typeahead"` 71 + Account *syntax.DID `json:"account"` 72 + Offset int `json:"offset"` 73 + Size int `json:"size"` 70 74 } 71 75 72 76 func checkParams(offset, size int) error {