commit a5cf74d21b8fa23e665266c63bd73824a01b3ed9 parent c014a19eb5c755bc6437af99a582f948320fd34f Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 28 Mar 2018 17:43:52 +0200 Fix the code that was wrong Diffstat:
| M | twitter/twitter.go | | | 7 | +------ |
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/twitter/twitter.go b/twitter/twitter.go @@ -220,12 +220,7 @@ func (t *TwitterAPI) GetTweets(tweets []int64) ([]byte, error) { continue } if t.RetweetedStatus != nil { - if tweetsSlice[t.RetweetedStatus.IdStr] { - continue - } JT.Retweet = true - tweetsSlice[t.IdStr] = true - tweetsSlice[t.RetweetedStatus.IdStr] = true if retweets[t.RetweetedStatus.IdStr] { continue } else { @@ -236,8 +231,8 @@ func (t *TwitterAPI) GetTweets(tweets []int64) ([]byte, error) { } } else { JT.Retweet = false - tweetsSlice[t.IdStr] = true } + tweetsSlice[t.IdStr] = true // If we got a retweet get the data of the original tweet if JT.Retweet { JT.Username = t.RetweetedStatus.User.ScreenName