Add local and twkn timelines

This commit is contained in:
r 2019-12-25 04:30:21 +00:00
parent 51bdb20402
commit f6f7b27e40
9 changed files with 45 additions and 20 deletions

View file

@ -192,7 +192,7 @@ func (c *Client) GetTimelineHome(ctx context.Context, pg *Pagination) ([]*Status
func (c *Client) GetTimelinePublic(ctx context.Context, isLocal bool, pg *Pagination) ([]*Status, error) {
params := url.Values{}
if isLocal {
params.Set("local", "t")
params.Set("local", "true")
}
var statuses []*Status