From 0eb73d75a88a3b9514b7f32416fb9ac806afb6eb Mon Sep 17 00:00:00 2001 From: loweel Date: Mon, 7 Aug 2023 20:09:33 +0200 Subject: [PATCH] Added RSS item title to the APub body --- feed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed.go b/feed.go index 5dcc894..841d596 100644 --- a/feed.go +++ b/feed.go @@ -51,7 +51,7 @@ func forwardLastFeed(url string) { if time.Since(postAge) < Zint { TheTitle := fmt.Sprintf("[News from %s ]", strip.StripTags(feed.Title)) - TheBody := fmt.Sprintf("%s \n\n%s \n\n%s", strip.StripTags(b.Author.Name), strip.StripTags(b.Description), b.Link) + TheBody := fmt.Sprintf("%s\n\n %s\n\n %s\n\n%s\n ", strip.StripTags(b.Author.Name), strip.StripTags(b.Title), strip.StripTags(b.Description), b.Link) postOnMastodon(TheBody, TheTitle) log.Println("New content from: ", feed.Title, b.Title, feed.Description)