mirror of
https://git.keinpfusch.net/loweel/zorg
synced 2024-12-19 00:03:28 +01:00
Added RSS item title to the APub body
This commit is contained in:
parent
2ea8bf202b
commit
0eb73d75a8
2
feed.go
2
feed.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user