can fetch zenshuu with tag

This commit is contained in:
Bel LaPointe
2025-04-27 12:56:33 -06:00
parent ba429f6028
commit f95563e849
5 changed files with 26 additions and 9 deletions

View File

@@ -64,6 +64,9 @@ func (feed Feed) Fetch(ctx context.Context) (Items, error) {
result := make(Items, 0, len(gfeed.Items))
for _, gitem := range gfeed.Items {
if gitem.Author == nil {
gitem.Author = &gofeed.Person{}
}
if matches := slices.DeleteFunc(append([]string{
gitem.Title,
gitem.Description,
@@ -97,6 +100,7 @@ func (feed Feed) Fetch(ctx context.Context) (Items, error) {
Links: links,
Preview: preview,
Body: body,
Tag: feed.Version.Tag,
})
}