Browse Source

Fix mismatching types error (#277)

pull/282/head
Andrew Morgan 5 years ago
committed by GitHub
parent
commit
6f1879f359
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

@ -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 {
return &gomatrix.HTMLMessage{
return gomatrix.HTMLMessage{
Body: fmt.Sprintf("%s: %s (%s)",
html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)),
MsgType: "m.notice",

Loading…
Cancel
Save