Fix feed favicon

This commit is contained in:
Jake Howard 2023-12-22 17:37:16 +00:00
parent e5ae66567a
commit 0edbd9a8e8
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -17,7 +17,7 @@ class CustomFeed(DefaultFeed):
def add_root_elements(self, handler: SimplerXMLGenerator) -> None:
super().add_root_elements(handler)
handler.startElement("image", {})
handler.addQuickElement("url", self.request.build_absolute_uri("favicon.ico"))
handler.addQuickElement("url", self.request.build_absolute_uri("/favicon.ico"))
handler.addQuickElement("title", self.feed["title"])
handler.addQuickElement("link", self.feed["link"])
handler.endElement("image")