Ignore retweets in strict mode

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/4/head
jolheiser 2021-03-24 22:17:34 -05:00
parent 35ee2c2d34
commit d94701fcfb
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 4 additions and 0 deletions

View File

@ -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 {