A social RSS reader built on the AT Protocol. glean.at
glean atproto atmosphere rss feed social app
14
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update feeds upsert to skip empty string updates

+4 -4
+4 -4
internal/db/feed.go
··· 381 381 INSERT INTO articles.feeds (feed_url, title, site_url, description, feed_type) 382 382 VALUES (?, ?, ?, ?, ?) 383 383 ON CONFLICT(feed_url) DO UPDATE SET 384 - title = excluded.title, 385 - site_url = excluded.site_url, 386 - description = excluded.description, 387 - feed_type = excluded.feed_type 384 + title = COALESCE(NULLIF(excluded.title, ''), articles.feeds.title), 385 + site_url = COALESCE(NULLIF(excluded.site_url, ''), articles.feeds.site_url), 386 + description = COALESCE(NULLIF(excluded.description, ''), articles.feeds.description), 387 + feed_type = COALESCE(NULLIF(excluded.feed_type, ''), articles.feeds.feed_type) 388 388 `) 389 389 if err != nil { 390 390 return err