Set Atom feed icon when converting from SyndFeed (#321)
This commit is contained in:
parent
998e2060eb
commit
9b27f0563d
2 changed files with 6 additions and 0 deletions
|
@ -414,6 +414,11 @@ public class ConverterForAtom10 implements Converter {
|
||||||
aFeed.setContributors(ConverterForAtom03.createAtomPersons(contributors));
|
aFeed.setContributors(ConverterForAtom03.createAtomPersons(contributors));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SyndImage image = syndFeed.getImage();
|
||||||
|
if (image != null) {
|
||||||
|
aFeed.setIcon(image.getUrl());
|
||||||
|
}
|
||||||
|
|
||||||
aFeed.setRights(syndFeed.getCopyright());
|
aFeed.setRights(syndFeed.getCopyright());
|
||||||
|
|
||||||
aFeed.setUpdated(syndFeed.getPublishedDate());
|
aFeed.setUpdated(syndFeed.getPublishedDate());
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<uri>http://example.com</uri>
|
<uri>http://example.com</uri>
|
||||||
<email>author1@example.com</email>
|
<email>author1@example.com</email>
|
||||||
</contributor>
|
</contributor>
|
||||||
|
<icon>http://example.com/icon</icon>
|
||||||
<subtitle type="html">atom_1.0.feed.tagline</subtitle>
|
<subtitle type="html">atom_1.0.feed.tagline</subtitle>
|
||||||
<id>http://example.com/blog/atom_1.0.xml</id>
|
<id>http://example.com/blog/atom_1.0.xml</id>
|
||||||
<generator uri="http://example.com/test">atom_1.0.feed.generator</generator>
|
<generator uri="http://example.com/test">atom_1.0.feed.generator</generator>
|
||||||
|
|
Loading…
Reference in a new issue