aboutsummaryrefslogtreecommitdiff
path: root/mastodon/status.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-01-30 04:13:22 +0000
committerr <r@freesoftwareextremist.com>2021-01-30 04:13:22 +0000
commit9f34b607498c09b4a21bdcc82b3295f6c94bd058 (patch)
treec5a528cad05227f15f30b07f6d0056045176166b /mastodon/status.go
parentc3f39210d8451d65f3ecaa88046380f42dc536a1 (diff)
parent3ac95ab3b117ee8867a30c8e4b30ab37411e5ccf (diff)
downloadbloat-9f34b607498c09b4a21bdcc82b3295f6c94bd058.tar.gz
bloat-9f34b607498c09b4a21bdcc82b3295f6c94bd058.zip
Merge branch 'master' into absolute_fluoride
Diffstat (limited to 'mastodon/status.go')
-rw-r--r--mastodon/status.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/mastodon/status.go b/mastodon/status.go
index c8555d6..80e7e0e 100644
--- a/mastodon/status.go
+++ b/mastodon/status.go
@@ -191,9 +191,11 @@ func (c *Client) GetTimelineHome(ctx context.Context, pg *Pagination) ([]*Status
}
// GetTimelinePublic return statuses from public timeline.
-func (c *Client) GetTimelinePublic(ctx context.Context, isLocal bool, pg *Pagination) ([]*Status, error) {
+func (c *Client) GetTimelinePublic(ctx context.Context, isLocal bool, instance string, pg *Pagination) ([]*Status, error) {
params := url.Values{}
- if isLocal {
+ if len(instance) > 0 {
+ params.Set("instance", instance)
+ } else if isLocal {
params.Set("local", "true")
}