Dionysis Grigoropoulos
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
1 deletions
-
Dockerfile
-
services/rssbot/rssbot.go
|
|
@ -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++ |
|
|
|
|
|
|
|
|
|
@ -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)), |
|
|
|