From 4eb77ff689ea1baaeb1be53c0dc82ddd879b3af5 Mon Sep 17 00:00:00 2001 From: Dionysis Grigoropoulos Date: Mon, 26 Jun 2023 17:47:37 +0000 Subject: [PATCH 1/2] dockerfile: honnef requires golang v1.19 nowadays --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8d880ab1..39fe4f8e 100644 --- a/Dockerfile +++ b/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++ From a0f65b66e1510e46246e759590b569cd3af5e6b2 Mon Sep 17 00:00:00 2001 From: Dionysis Grigoropoulos Date: Mon, 26 Jun 2023 17:47:09 +0000 Subject: [PATCH 2/2] rssbot: Post description of a feed item as well --- services/rssbot/rssbot.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/rssbot/rssbot.go b/services/rssbot/rssbot.go index d7e34724..4d876bea 100644 --- a/services/rssbot/rssbot.go +++ b/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("
%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)),