parent
d94701fcfb
commit
b13389aae6
|
@ -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…
Reference in New Issue