diff options
author | r <r@freesoftwareextremist.com> | 2019-12-22 16:27:49 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-22 16:27:49 +0000 |
commit | 05daa6a148ee4d5d43ab1f055862b6a4b2eb75ec (patch) | |
tree | 0e82031aec5432ca06b5aefeb2151a27757f6312 /service/auth.go | |
parent | 2506615f4228de4189202123d414e8f22b2c1c1b (diff) | |
download | bloat-05daa6a148ee4d5d43ab1f055862b6a4b2eb75ec.tar.gz bloat-05daa6a148ee4d5d43ab1f055862b6a4b2eb75ec.zip |
Add nsfw checkbox for posts
Diffstat (limited to 'service/auth.go')
-rw-r--r-- | service/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/auth.go b/service/auth.go index 13e9c50..1b2700c 100644 --- a/service/auth.go +++ b/service/auth.go @@ -157,12 +157,12 @@ func (s *authService) UnRetweet(ctx context.Context, client io.Writer, c *model. return s.Service.UnRetweet(ctx, client, c, id) } -func (s *authService) PostTweet(ctx context.Context, client io.Writer, c *model.Client, content string, replyToID string, visibility string, files []*multipart.FileHeader) (id string, err error) { +func (s *authService) PostTweet(ctx context.Context, client io.Writer, c *model.Client, content string, replyToID string, visibility string, isNSFW bool, files []*multipart.FileHeader) (id string, err error) { c, err = s.getClient(ctx) if err != nil { return } - return s.Service.PostTweet(ctx, client, c, content, replyToID, visibility, files) + return s.Service.PostTweet(ctx, client, c, content, replyToID, visibility, isNSFW, files) } func (s *authService) Follow(ctx context.Context, client io.Writer, c *model.Client, id string) (err error) { |