RSS generator: Re-add atom:link tag.
I forgot it when switching to pugixml.
This commit is contained in:
parent
bfe2035907
commit
d8a4bd37a4
|
@ -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())
|
||||
|
|
Reference in New Issue
Block a user