Added RSS item title to the APub body

master
Uriel Fanelli 2023-08-07 20:09:33 +02:00
parent 2ea8bf202b
commit 0eb73d75a8
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func forwardLastFeed(url string) {
if time.Since(postAge) < Zint { if time.Since(postAge) < Zint {
TheTitle := fmt.Sprintf("[News from %s ]", strip.StripTags(feed.Title)) 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) postOnMastodon(TheBody, TheTitle)
log.Println("New content from: ", feed.Title, b.Title, feed.Description) log.Println("New content from: ", feed.Title, b.Title, feed.Description)