diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-02-05 11:21:28 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-02-05 11:21:28 +0100 |
commit | 9e3952855832c1277dcaf6dd5e57d93cb729d75d (patch) | |
tree | 2a954de01fd1e333beaf334d3c59c98365903694 /patches | |
parent | 83865f6d1fe1ca663f339710ffaec2cb5aac86a6 (diff) | |
download | honk_custom-9e3952855832c1277dcaf6dd5e57d93cb729d75d.tar.gz honk_custom-9e3952855832c1277dcaf6dd5e57d93cb729d75d.zip |
Prettier RSS feed patch
- <title> of the RSS feed is in the following format: "@user - honking from domain.name"
- <description> is in the following format: "RSS Feeds of honks from user@domain.name"
Diffstat (limited to 'patches')
-rw-r--r-- | patches/01_prettier_rssfeed.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/01_prettier_rssfeed.patch b/patches/01_prettier_rssfeed.patch new file mode 100644 index 0000000..80e8d9e --- /dev/null +++ b/patches/01_prettier_rssfeed.patch @@ -0,0 +1,16 @@ +diff --git a/web.go b/web.go +index 11adf5b..502e15f 100644 +--- a/web.go ++++ b/web.go +@@ -190,9 +190,9 @@ func showrss(w http.ResponseWriter, r *http.Request) { + name += " " + } + feed := rss.Feed{ +- Title: name + "honk", ++ Title: "@" + name + " - honking from " + serverName, + Link: home, +- Description: name + "honk rss", ++ Description: "RSS Feed of honks from " + name + "@" + serverName, + Image: &rss.Image{ + URL: base + "icon.png", + Title: name + "honk rss", |