diff options
Diffstat (limited to 'juick-rss/src/main/java')
-rw-r--r-- | juick-rss/src/main/java/com/juick/rss/Main.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/juick-rss/src/main/java/com/juick/rss/Main.java b/juick-rss/src/main/java/com/juick/rss/Main.java index 471753b7b..bf8348fb6 100644 --- a/juick-rss/src/main/java/com/juick/rss/Main.java +++ b/juick-rss/src/main/java/com/juick/rss/Main.java @@ -126,13 +126,13 @@ public class Main extends HttpServlet { for (Message msg : msgs) { out.println("<item>"); - out.println("<link>http://juick.com/" + msg.getUser().getUName() + "/" + msg.getMID() + "</link>"); - out.println("<guid>http://juick.com/" + msg.getUser().getUName() + "/" + msg.getMID() + "</guid>"); + out.println("<link>http://juick.com/" + msg.getUser().getName() + "/" + msg.getMid() + "</link>"); + out.println("<guid>http://juick.com/" + msg.getUser().getName() + "/" + msg.getMid() + "</guid>"); - out.print("<title><![CDATA[@" + msg.getUser().getUName() + ":"); - if (!msg.Tags.isEmpty()) { - for (int n = 0; n < msg.Tags.size(); n++) { - out.print(" *" + msg.Tags.get(n)); + out.print("<title><![CDATA[@" + msg.getUser().getName() + ":"); + if (!msg.getTags().isEmpty()) { + for (int n = 0; n < msg.getTags().size(); n++) { + out.print(" *" + msg.getTags().get(n)); } } out.println("]]></title>"); @@ -140,22 +140,22 @@ public class Main extends HttpServlet { out.println("<pubDate>" + sdfRSS.format(msg.getDate()) + "</pubDate>"); - out.println("<comments>http://juick.com/" + msg.getUser().getUName() + "/" + msg.getMID() + "</comments>"); - if (!msg.Tags.isEmpty()) { - for (int n = 0; n < msg.Tags.size(); n++) { - out.println("<category>" + escapeHtml(msg.Tags.get(n).getName()) + "</category>"); + out.println("<comments>http://juick.com/" + msg.getUser().getName() + "/" + msg.getMid() + "</comments>"); + if (!msg.getTags().isEmpty()) { + for (int n = 0; n < msg.getTags().size(); n++) { + out.println("<category>" + escapeHtml(msg.getTags().get(n).getName()) + "</category>"); } } if (msg.AttachmentType != null) { if (msg.AttachmentType.equals("jpg")) { - out.println("<media:content url='http://i.juick.com/photos-1024/" + msg.getMID() + ".jpg' type='image/jpeg'/>"); - out.println("<media:thumbnail url='http://i.juick.com/ps/" + msg.getMID() + ".jpg'/>"); + out.println("<media:content url='http://i.juick.com/photos-1024/" + msg.getMid() + ".jpg' type='image/jpeg'/>"); + out.println("<media:thumbnail url='http://i.juick.com/ps/" + msg.getMid() + ".jpg'/>"); } else if (msg.AttachmentType.equals("png")) { - out.println("<media:content url='http://i.juick.com/photos-1024/" + msg.getMID() + ".png' type='image/png'/>"); - out.println("<media:thumbnail url='http://i.juick.com/ps/" + msg.getMID() + ".png'/>"); + out.println("<media:content url='http://i.juick.com/photos-1024/" + msg.getMid() + ".png' type='image/png'/>"); + out.println("<media:thumbnail url='http://i.juick.com/ps/" + msg.getMid() + ".png'/>"); } } - out.println("<juick:user uid='" + msg.getUser().getUID() + "'/>"); + out.println("<juick:user uid='" + msg.getUser().getUid() + "'/>"); out.println("</item>"); } |