diff --git a/getarticles.go b/getarticles.go
index 2d6b783..5123c2a 100644
--- a/getarticles.go
+++ b/getarticles.go
@@ -194,22 +194,20 @@ func getArticles(feedURL string, max int, noExcerpt bool) (string, error) {
// Remove redirects and tracking parameters from URL.
cleanURL, _ := removeTracking(article.Link)
// Don't process mastodon messages that are a reply
- if strings.Contains(article.Content, "http://activitystrea.ms/schema/1.0/comment") == false {
- // Strip HTML as we want to get plain text.
- mastodonContent := strings.Replace(article.Content, ``, "", -1)
- mastodonContent = strings.Replace(mastodonContent, ``, "", -1)
- mastodonContent = strings.Replace(mastodonContent, ``, "", -1)
- mastodonContent = strings.Replace(mastodonContent, ``, "", -1)
- mastodonContent, err = html2text.FromString(mastodonContent, html2text.Options{OmitLinks: true})
- if err != nil {
- return "", err
- }
+ // Strip HTML as we want to get plain text.
+ mastodonContent := strings.Replace(article.Description, ``, "", -1)
+ mastodonContent = strings.Replace(mastodonContent, ``, "", -1)
+ mastodonContent = strings.Replace(mastodonContent, ``, "", -1)
+ mastodonContent = strings.Replace(mastodonContent, ``, "", -1)
+ mastodonContent, err = html2text.FromString(mastodonContent, html2text.Options{OmitLinks: true})
+ if err != nil {
+ return "", err
+ }
- output = output + "Kuketz-Blog: " + mastodonContent + "\n\n" + cleanURL
+ output = output + "Kuketz-Blog: " + mastodonContent + "\n\n" + cleanURL
- if i > 0 {
- output = output + "\n\n---\n\n"
- }
+ if i > 0 {
+ output = output + "\n\n---\n\n"
}
}