RSS generator: Re-add atom:link tag.

I forgot it when switching to pugixml.
This commit is contained in:
tastytea 2020-10-30 17:46:20 +01:00
parent bfe2035907
commit d8a4bd37a4
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 1 deletions

View File

@ -79,8 +79,12 @@ void write_rss(ostream &out, const vector<entry_type> &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())