Fix streaming for mstdn

pull/48/head
178inaba 2017-04-28 14:19:40 +09:00
parent 9fa63b511c
commit f4cf4d4ec9
1 changed files with 4 additions and 4 deletions

View File

@ -64,13 +64,13 @@ func cmdStream(c *cli.Context) error {
t := c.String("type") t := c.String("type")
if t == "public" { if t == "public" {
q, err = client.StreamingPublic(ctx) q, err = client.StreamingPublic(ctx, false)
} else if t == "" || t == "public/local" { } else if t == "" || t == "public/local" {
q, err = client.StreamingPublicLocal(ctx) q, err = client.StreamingPublic(ctx, true)
} else if strings.HasPrefix(t, "user:") { } else if strings.HasPrefix(t, "user:") {
q, err = client.StreamingUser(ctx, t[5:]) q, err = client.StreamingUser(ctx)
} else if strings.HasPrefix(t, "hashtag:") { } else if strings.HasPrefix(t, "hashtag:") {
q, err = client.StreamingHashtag(ctx, t[8:]) q, err = client.StreamingHashtag(ctx, t[8:], false)
} else { } else {
return errors.New("invalid type") return errors.New("invalid type")
} }