all repos — honk @ 762c8e6061d399db93c6e8fa990a467a86f1809f

my fork of honk

update twitter import again, from tom
Ted Unangst tedu@tedunangst.com
Fri, 04 Aug 2023 13:08:15 -0400
commit

762c8e6061d399db93c6e8fa990a467a86f1809f

parent

8bc4e0cfa1c5bd0a834fb1edc0b4a16c17cf4da9

1 files changed, 1 insertions(+), 6 deletions(-)

jump to
M import.goimport.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 }