Delete content link from everywhere since it is only a combination of already saved info

This commit is contained in:
2024-11-01 16:26:37 +01:00
parent f663592019
commit dbddff6e55
5 changed files with 10 additions and 32 deletions

View File

@@ -33,7 +33,7 @@ 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)
entry.Content = atom.NewContent(atom.OutOfLine, "text/hmtl", fmt.Sprint(c.Domain, "/article/serve/", article.ID))
if article.AutoGenerated {
entry.Summary = atom.NewText("text", "automatically generated")