Fix bug that made the issue content unavailable
This commit is contained in:
		| @@ -31,12 +31,11 @@ func GenerateAtomFeed(c *Config, db *DB) (*string, error) { | |||||||
| 		entry := atom.NewEntry(articleTitle) | 		entry := atom.NewEntry(articleTitle) | ||||||
| 		entry.ID = atom.NewID(fmt.Sprint("urn:entry:", article.ID)) | 		entry.ID = atom.NewID(fmt.Sprint("urn:entry:", article.ID)) | ||||||
| 		entry.Published = atom.NewDate(article.Created) | 		entry.Published = atom.NewDate(article.Created) | ||||||
|  |  | ||||||
| 		if article.AutoGenerated { |  | ||||||
| 			entry.Content = atom.NewContent(atom.InlineText, "text", "") |  | ||||||
| 		} else { |  | ||||||
| 		entry.Content = atom.NewContent(atom.OutOfLine, "text/hmtl", article.ContentLink) | 		entry.Content = atom.NewContent(atom.OutOfLine, "text/hmtl", article.ContentLink) | ||||||
|  |  | ||||||
|  | 		if article.AutoGenerated { | ||||||
|  | 			entry.Summary = atom.NewText("text", "automatically generated") | ||||||
|  | 		} else { | ||||||
| 			articleSummary, err := ConvertToPlain(article.Summary) | 			articleSummary, err := ConvertToPlain(article.Summary) | ||||||
| 			if err != nil { | 			if err != nil { | ||||||
| 				return nil, fmt.Errorf("error converting description to plain text for Atom feed: %v", err) | 				return nil, fmt.Errorf("error converting description to plain text for Atom feed: %v", err) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user