Browse Source

Merge pull request #288 from vranki/vranki/add-spaces-to-url

Add spaces between URL and parenthesis
pull/294/head
Jason Robinson 6 years ago
committed by GitHub
parent
commit
bc6cad9a91
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go

2
src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go

@ -350,7 +350,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",
Format: "org.matrix.custom.html", Format: "org.matrix.custom.html",

Loading…
Cancel
Save