Fix streaming for mstdn
parent
9fa63b511c
commit
f4cf4d4ec9
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue