Andrew Morgan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go
|
@ -349,7 +349,7 @@ func (s *Service) sendToRooms(cli *gomatrix.Client, feedURL string, feed *gofeed |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage { |
|
|
func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage { |
|
|
return &gomatrix.HTMLMessage{ |
|
|
|
|
|
|
|
|
return gomatrix.HTMLMessage{ |
|
|
Body: fmt.Sprintf("%s: %s (%s)", |
|
|
Body: fmt.Sprintf("%s: %s (%s)", |
|
|
html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)), |
|
|
html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)), |
|
|
MsgType: "m.notice", |
|
|
MsgType: "m.notice", |
|
|