Browse Source

Merge a0f65b66e1 into 3ba3d4600f

pull/390/merge
Dionysis Grigoropoulos 11 months ago
committed by GitHub
parent
commit
468e85d264
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Dockerfile
  2. 5
      services/rssbot/rssbot.go

2
Dockerfile

@ -1,5 +1,5 @@
# Build go-neb
FROM golang:1.18-alpine as builder
FROM golang:1.19-alpine as builder
RUN apk add --no-cache -t build-deps git gcc musl-dev go make g++

5
services/rssbot/rssbot.go

@ -442,6 +442,11 @@ func itemToHTML(feed *gofeed.Feed, item gofeed.Item) mevt.MessageEventContent {
html.EscapeString(item.Author.Email))
}
}
if item.Description != "" {
fmtBody += fmt.Sprintf("<br>%s", html.EscapeString(item.Description))
}
return mevt.MessageEventContent{
Body: fmt.Sprintf("%s: %s ( %s )",
html.EscapeString(feed.Title), html.EscapeString(itemTitle), html.EscapeString(item.Link)),

Loading…
Cancel
Save