From b4003c8216fda295426591b9a7ccd143fafbf84d Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Wed, 30 Oct 2024 03:23:59 +0100 Subject: [PATCH] Fix bug that made the issue content unavailable --- cmd/backend/atom.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/backend/atom.go b/cmd/backend/atom.go index 8ce4fe0..6133818 100644 --- a/cmd/backend/atom.go +++ b/cmd/backend/atom.go @@ -31,12 +31,11 @@ func GenerateAtomFeed(c *Config, db *DB) (*string, error) { entry := atom.NewEntry(articleTitle) entry.ID = atom.NewID(fmt.Sprint("urn:entry:", article.ID)) entry.Published = atom.NewDate(article.Created) + entry.Content = atom.NewContent(atom.OutOfLine, "text/hmtl", article.ContentLink) if article.AutoGenerated { - entry.Content = atom.NewContent(atom.InlineText, "text", "") + entry.Summary = atom.NewText("text", "automatically generated") } else { - entry.Content = atom.NewContent(atom.OutOfLine, "text/hmtl", article.ContentLink) - articleSummary, err := ConvertToPlain(article.Summary) if err != nil { return nil, fmt.Errorf("error converting description to plain text for Atom feed: %v", err)