ignore whitespaces in instance, because it cause internal errors

This commit is contained in:
localhost_frssoft 2023-11-13 14:29:28 +03:00
parent 62f653fc28
commit 2bbcce5133

View File

@ -258,7 +258,7 @@ func (c *Client) TrueRemoteTimeline(ctx context.Context, instance string, instan
var publicstatuses []*Status
var instanceParams []string
instanceParams = strings.Split(instance, ":")[1:]
instance = strings.Split(instance, ":")[0]
instance = strings.TrimSpace(strings.Split(instance, ":")[0])
params := url.Values{}
params.Set("local", "true")