Set Atom feed icon when converting from SyndFeed (#321)

This commit is contained in:
Mark Hobson 2017-01-04 12:05:28 +00:00 committed by Patrick Gotthard
parent 998e2060eb
commit 9b27f0563d
2 changed files with 6 additions and 0 deletions

View file

@ -414,6 +414,11 @@ public class ConverterForAtom10 implements Converter {
aFeed.setContributors(ConverterForAtom03.createAtomPersons(contributors));
}
SyndImage image = syndFeed.getImage();
if (image != null) {
aFeed.setIcon(image.getUrl());
}
aFeed.setRights(syndFeed.getCopyright());
aFeed.setUpdated(syndFeed.getPublishedDate());

View file

@ -17,6 +17,7 @@
<uri>http://example.com</uri>
<email>author1@example.com</email>
</contributor>
<icon>http://example.com/icon</icon>
<subtitle type="html">atom_1.0.feed.tagline</subtitle>
<id>http://example.com/blog/atom_1.0.xml</id>
<generator uri="http://example.com/test">atom_1.0.feed.generator</generator>