alltweetsmatter

My Twitter export contains `tweets.js`. Use that instead
master
Jason Staten 1 year ago
parent aee97f0395
commit 8e75b1782c

@ -339,7 +339,7 @@ func importTwitter(username, source string) {
} }
var tweets []*Tweet var tweets []*Tweet
fd, err := os.Open(source + "/tweet.js") fd, err := os.Open(source + "/tweets.js")
if err != nil { if err != nil {
elog.Fatal(err) elog.Fatal(err)
} }
@ -376,11 +376,6 @@ func importTwitter(username, source string) {
continue continue
} }
if t.Tweet.FavoriteCount == "0" || t.Tweet.FavoriteCount == "" {
log.Printf("skipping, unworthy tweet")
continue
}
what := "honk" what := "honk"
noise := "" noise := ""
if parent := tweetmap[t.Tweet.InReplyToStatusID]; parent != nil { if parent := tweetmap[t.Tweet.InReplyToStatusID]; parent != nil {

Loading…
Cancel
Save