Set channel thumbnail as icon for feeds (#1106)

This commit is contained in:
Amanda Graven 2020-12-14 19:25:39 +01:00 committed by GitHub
parent a291b29c6f
commit 848add1b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1544,6 +1544,7 @@ get "/feed/channel/:ucid" do |env|
xml.element("link", rel: "self", href: "#{HOST_URL}#{env.request.resource}") xml.element("link", rel: "self", href: "#{HOST_URL}#{env.request.resource}")
xml.element("id") { xml.text "yt:channel:#{channel.ucid}" } xml.element("id") { xml.text "yt:channel:#{channel.ucid}" }
xml.element("yt:channelId") { xml.text 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("title") { xml.text channel.author }
xml.element("link", rel: "alternate", href: "#{HOST_URL}/channel/#{channel.ucid}") xml.element("link", rel: "alternate", href: "#{HOST_URL}/channel/#{channel.ucid}")