Removed commented out code.

This commit is contained in:
Martin Dosch 2019-06-01 10:40:31 +02:00
parent 64d98b6b45
commit 1bdf8c048f

View file

@ -250,19 +250,6 @@ func getArticles(feedURL string, max int, noExcerpt bool, filter []string) (stri
}
}
// To make the message look not so bloated we remove double newlines.
// Split the article description/content into fragments between double newlines.
// fragments := strings.Split(description, "\n\n")
// Empty article description/content
// description = ""
// Fill article description/content with the fragments separated by one newline.
// for _, line := range fragments {
// Only if the only content is not empty.
// if line != "" {
// description = description + line + "\n"
// }
//}
// Only append article link if it is not yet contained in description (e.g. read more: URL).
if strings.Contains(description, article.Link) == true {
// Replace article link with URL cleaned from redirects and trackers.