From 848add1b1b3182a224c446d24d5e318deed473c3 Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Mon, 14 Dec 2020 19:25:39 +0100 Subject: [PATCH] Set channel thumbnail as icon for feeds (#1106) --- src/invidious.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/invidious.cr b/src/invidious.cr index 2ddd3d0d..43b1a6d9 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1544,6 +1544,7 @@ get "/feed/channel/:ucid" do |env| xml.element("link", rel: "self", href: "#{HOST_URL}#{env.request.resource}") xml.element("id") { xml.text "yt:channel:#{channel.ucid}" } xml.element("yt:channelId") { xml.text channel.ucid } + xml.element("icon") { xml.text channel.author_thumbnail } xml.element("title") { xml.text channel.author } xml.element("link", rel: "alternate", href: "#{HOST_URL}/channel/#{channel.ucid}")