mirror of
https://git.keinpfusch.net/loweel/zorg
synced 2025-06-05 21:59:35 +02:00
Added RSS item title to the APub body
This commit is contained in:
2
feed.go
2
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)
|
||||
|
Reference in New Issue
Block a user