diff options
| author | Mateusz Jabłoński <mateusz.piotr.jablonski@gmail.com> | 2022-08-06 17:14:17 +0200 |
|---|---|---|
| committer | Mateusz Jabłoński <mateusz.piotr.jablonski@gmail.com> | 2022-08-06 17:14:17 +0200 |
| commit | 5df700a56e93e777666817b43765bb63f311ea5f (patch) | |
| tree | fb2da281b654b2e65882af5d371546faf3162587 /src | |
| parent | 0c64a86ebec8844a3aadbe44265776767d810aae (diff) | |
| download | invidious-5df700a56e93e777666817b43765bb63f311ea5f.tar.gz invidious-5df700a56e93e777666817b43765bb63f311ea5f.tar.bz2 invidious-5df700a56e93e777666817b43765bb63f311ea5f.zip | |
Added image tag to RSS channel for favicon rendering
https://validator.w3.org/feed/docs/rss2.html#ltimagegtSubelementOfLtchannelgt
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/routes/feeds.cr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/invidious/routes/feeds.cr b/src/invidious/routes/feeds.cr index 44a87175..b601db94 100644 --- a/src/invidious/routes/feeds.cr +++ b/src/invidious/routes/feeds.cr @@ -204,6 +204,12 @@ module Invidious::Routes::Feeds xml.element("uri") { xml.text "#{HOST_URL}/channel/#{channel.ucid}" } end + xml.element("image") do + xml.element("url") { xml.text channel.author_thumbnail } + xml.element("title") { xml.text channel.author } + xml.element("link", rel: "self", href: "#{HOST_URL}#{env.request.resource}") + end + videos.each do |video| video.to_xml(channel.auto_generated, params, xml) end |
