Add rel="self"
BrookeDot opened this issue · comments
When I validate a Feed outputted by FeedWriter.php I get this error Missing atom:link with rel="self"
The docs on the issue can be found here:http://feed2.w3.org/docs/warning/MissingAtomSelfLink.html
I was able to fix the issue by adding xmlns:atom="http://www.w3.org/2005/Atom"
to the $out.=
on line 283
then adding the atom rel=self inside the channel I added this to line 386
by adding echo '<atom:link href="http:/example.com/feeds/myfeed.rss" rel="self" type="application/rss+xml" />';
Would love to see this added to core. Thanks :)
👍
Use the new setSelfLink method of the Feed class.