only grab rss links once
Ted Unangst tedu@tedunangst.com
Tue, 27 Feb 2024 16:24:58 -0500
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
syndicate.go
→
syndicate.go
@@ -25,6 +25,10 @@ reverseItems(rss.Items)
for _, item := range rss.Items { var final string dlog.Printf("link: %s", item.Link) + if x := getxonk(user.ID, item.Link); x != nil { + dlog.Printf("already have it") + continue + } j, err := GetJunkTimeout(user.ID, item.Link, fastTimeout*time.Second, &final) if err != nil { dlog.Printf("unable to fetch link: %s", err)