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)