Skip to content

Commit

Permalink
Adds #buildinpublic to all tweets for additional exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatz committed Jul 17, 2023
1 parent 7bdd21d commit f57bd15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ func Handler(ctx context.Context) (Response, error) {
}
tweetMessage := "✅ " + todo.Body
if len(todo.Attachments) > 0 {
tweetMessage += " " + todo.Attachments[0].URL // Just use the first attachment for now
tweetMessage += " " + todo.Attachments[0].URL + " #buildinpublic" // Just use the first attachment for now
} else {
tweetMessage += " #buildinpublic"
}
logger.Info("About to tweet this message: " + tweetMessage)
_, err := twitterClient.CreateTweet(context.Background(), twitter.CreateTweetRequest{
Expand Down

0 comments on commit f57bd15

Please sign in to comment.