impl feeds.Update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user