aboutsummaryrefslogtreecommitdiff
path: root/service/logging.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-21 13:26:31 +0000
committerr <r@freesoftwareextremist.com>2019-12-21 13:26:31 +0000
commit2678f33157d147ba548793709cd8fbaabb4eaae2 (patch)
tree37d4775452f68dc8a52f3156758dc3475feeda68 /service/logging.go
parent3af4361927d65b896ac3f9e2f0170cbbef63c0c0 (diff)
downloadbloat-2678f33157d147ba548793709cd8fbaabb4eaae2.tar.gz
bloat-2678f33157d147ba548793709cd8fbaabb4eaae2.zip
Add support for scopes
- Add scope selection for for new post - Save new post scope in db - Copy scope on reply - Show scope icon on posts
Diffstat (limited to 'service/logging.go')
-rw-r--r--service/logging.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/logging.go b/service/logging.go
index f34bef5..ceba716 100644
--- a/service/logging.go
+++ b/service/logging.go
@@ -133,12 +133,12 @@ func (s *loggingService) UnRetweet(ctx context.Context, client io.Writer, c *mod
return s.Service.UnRetweet(ctx, client, c, id)
}
-func (s *loggingService) PostTweet(ctx context.Context, client io.Writer, c *model.Client, content string, replyToID string, files []*multipart.FileHeader) (id string, err error) {
+func (s *loggingService) PostTweet(ctx context.Context, client io.Writer, c *model.Client, content string, replyToID string, visibility string, files []*multipart.FileHeader) (id string, err error) {
defer func(begin time.Time) {
- s.logger.Printf("method=%v, content=%v, reply_to_id=%v, took=%v, err=%v\n",
- "PostTweet", content, replyToID, time.Since(begin), err)
+ s.logger.Printf("method=%v, content=%v, reply_to_id=%v, visibility=%v, took=%v, err=%v\n",
+ "PostTweet", content, replyToID, visibility, time.Since(begin), err)
}(time.Now())
- return s.Service.PostTweet(ctx, client, c, content, replyToID, files)
+ return s.Service.PostTweet(ctx, client, c, content, replyToID, visibility, files)
}
func (s *loggingService) Follow(ctx context.Context, client io.Writer, c *model.Client, id string) (err error) {