update twitter import again, from tom
Ted Unangst tedu@tedunangst.com
Fri, 04 Aug 2023 13:08:15 -0400
1 files changed,
1 insertions(+),
6 deletions(-)
jump to
M
import.go
→
import.go
@@ -338,7 +338,7 @@ } `json:"tweet"`
} var tweets []*Tweet - fd, err := os.Open(source + "/tweet.js") + fd, err := os.Open(source + "/tweets.js") if err != nil { elog.Fatal(err) }@@ -372,11 +372,6 @@ log.Printf("importing %v tweets", len(tweets))
for _, t := range tweets { xid := fmt.Sprintf("%s/%s/%s", user.URL, honkSep, t.Tweet.IdStr) if havetwid(xid) { - continue - } - - if t.Tweet.FavoriteCount == "0" || t.Tweet.FavoriteCount == "" { - log.Printf("skipping, unworthy tweet") continue }