Browse Source

Ignore retweets in strict mode

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/4/head
jolheiser 1 year ago
parent
commit
d94701fcfb
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
  1. 4
      handler/twitter.go

4
handler/twitter.go

@ -34,6 +34,10 @@ func (t *Twitter) Tweet(tweet *twitter.Tweet) { @@ -34,6 +34,10 @@ func (t *Twitter) Tweet(tweet *twitter.Tweet) {
beaver.Debug("tweet is a reply")
return
}
if tweet.RetweetedStatus != nil {
beaver.Debug("tweet is a retweet")
return
}
var match bool
for _, id := range t.Filter.Follows {
if id == tweet.User.IDStr {

Loading…
Cancel
Save