socialnetworknews-api

git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-api.git
Log | Files | Refs | LICENSE

commit c014a19eb5c755bc6437af99a582f948320fd34f
parent 92ee33806426654dcfb0213f337c5fc8068ec8d0
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 28 Mar 2018 17:36:39 +0200

Fix nil pointer

Diffstat:
Mtwitter/twitter.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/twitter/twitter.go b/twitter/twitter.go @@ -219,10 +219,10 @@ func (t *TwitterAPI) GetTweets(tweets []int64) ([]byte, error) { if tweetsSlice[t.IdStr] { continue } - if tweetsSlice[t.RetweetedStatus.IdStr] { - continue - } if t.RetweetedStatus != nil { + if tweetsSlice[t.RetweetedStatus.IdStr] { + continue + } JT.Retweet = true tweetsSlice[t.IdStr] = true tweetsSlice[t.RetweetedStatus.IdStr] = true