diff --git a/src/generators/rss.cpp b/src/generators/rss.cpp index d838195..f63c3a2 100644 --- a/src/generators/rss.cpp +++ b/src/generators/rss.cpp @@ -79,8 +79,12 @@ void write_rss(ostream &out, const vector &entries, auto rss{doc.append_child("rss")}; rss.append_attribute("version") = "2.0"; rss.append_attribute("xmlns:atom") = "http://www.w3.org/2005/Atom"; - auto channel{rss.append_child("channel")}; + auto atom_link{channel.append_child("atom:link")}; + atom_link.append_attribute("href") = selfurl.c_str(); + atom_link.append_attribute("rel") = "self"; + atom_link.append_attribute("type") = "application/rss+xml"; + string tmp_title{"FediBlock: "}; string tmp_description{"The newest FediBlock entries. "}; if (tags.empty())