mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-14 02:06:50 +01:00
Removed commented out code.
This commit is contained in:
parent
64d98b6b45
commit
1bdf8c048f
1 changed files with 0 additions and 13 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue