impl feeds.Update

This commit is contained in:
bel
2025-05-05 22:41:37 -06:00
parent 7a94c74226
commit bd67eb0dfe
5 changed files with 65 additions and 2 deletions

View File

@@ -100,8 +100,14 @@ func (feed Feed) Fetch(ctx context.Context) (Items, error) {
slices.Sort(links)
links = slices.Compact(links)
var link string
if len(links) > 0 {
link = links[0]
}
result = append(result, Item{
Title: gitem.Title,
Link: link,
Links: links,
Preview: preview,
Body: body,