Browse Source

Update Tweet Webhook

Fix #1
Fix #2

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 7 months ago
parent
commit
b13389aae6
Signed by: jolheiser GPG Key ID: B853ADA5DA7BBF7A
  1. 5
      handler/twitter.go

5
handler/twitter.go

@ -52,8 +52,9 @@ func (t *Twitter) Tweet(tweet *twitter.Tweet) {
}
w := &disco.Webhook{
Username: tweet.User.Name,
Content: fmt.Sprintf("https://twitter.com/%d/status/%d", tweet.User.ID, tweet.ID),
Username: "@" + tweet.User.ScreenName,
AvatarURL: tweet.User.ProfileImageURLHttps,
Content: fmt.Sprintf("https://twitter.com/%d/status/%d", tweet.User.ID, tweet.ID),
}
if _, err := w.Send(context.Background(), t.Filter.Webhook); err != nil {
beaver.Error(err)

Loading…
Cancel
Save