diff options
author | r <r@freesoftwareextremist.com> | 2020-04-19 05:57:40 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-04-19 05:57:40 +0000 |
commit | 91d87b01752a35f67508d5eb6f804946d7f9f7f2 (patch) | |
tree | 65cfc14c69d4ae3b554b600457c39293bf1a79c3 /service/service.go | |
parent | 04af1b93dc95d761b4e05a448c9d86ac67623ff6 (diff) | |
download | bloat-91d87b01752a35f67508d5eb6f804946d7f9f7f2.tar.gz bloat-91d87b01752a35f67508d5eb6f804946d7f9f7f2.zip |
Add account {hide,show}retweets
Diffstat (limited to 'service/service.go')
-rw-r--r-- | service/service.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/service.go b/service/service.go index 3a48e77..be83bd0 100644 --- a/service/service.go +++ b/service/service.go @@ -46,7 +46,7 @@ type Service interface { Retweet(ctx context.Context, c *model.Client, id string) (count int64, err error) UnRetweet(ctx context.Context, c *model.Client, id string) (count int64, err error) Vote(ctx context.Context, c *model.Client, id string, choices []string) (err error) - Follow(ctx context.Context, c *model.Client, id string) (err error) + Follow(ctx context.Context, c *model.Client, id string, reblogs *bool) (err error) UnFollow(ctx context.Context, c *model.Client, id string) (err error) Mute(ctx context.Context, c *model.Client, id string) (err error) UnMute(ctx context.Context, c *model.Client, id string) (err error) @@ -811,8 +811,8 @@ func (svc *service) Vote(ctx context.Context, c *model.Client, id string, return } -func (svc *service) Follow(ctx context.Context, c *model.Client, id string) (err error) { - _, err = c.AccountFollow(ctx, id) +func (svc *service) Follow(ctx context.Context, c *model.Client, id string, reblogs *bool) (err error) { + _, err = c.AccountFollow(ctx, id, reblogs) return } |