Update Tweet Webhook

Fix #1
Fix #2

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/4/head
jolheiser 2021-03-27 23:00:17 -05:00
parent d94701fcfb
commit b13389aae6
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,8 @@ func (t *Twitter) Tweet(tweet *twitter.Tweet) {
}
w := &disco.Webhook{
Username: tweet.User.Name,
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 {