add filtered to Status
This commit is contained in:
parent
aa9c1859b5
commit
e86f463667
3 changed files with 73 additions and 30 deletions
12
filters.go
12
filters.go
|
@ -19,6 +19,18 @@ type Filter struct {
|
|||
Irreversible bool `json:"irreversible"`
|
||||
}
|
||||
|
||||
type FilterResult struct {
|
||||
Filter struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Context []string `json:"context"`
|
||||
ExpiresAt time.Time `json:"expires_at"`
|
||||
FilterAction string `json:"filter_action"`
|
||||
} `json:"filter"`
|
||||
KeywordMatches []string `json:"keyword_matches"`
|
||||
StatusMatches []string `json:"status_matches"`
|
||||
}
|
||||
|
||||
// GetFilters returns all the filters on the current account.
|
||||
func (c *Client) GetFilters(ctx context.Context) ([]*Filter, error) {
|
||||
var filters []*Filter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue