aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http/www/RSS.java
diff options
context:
space:
mode:
authorGravatar Alex Bitney2016-02-06 16:33:29 +0200
committerGravatar Alex Bitney2016-02-06 16:33:29 +0200
commit032f5f7c62ed6932386e700a74dd7e519ad4de5d (patch)
treedd960cb1265c5b63a1eaccd091cb984b28a177d5 /src/main/java/com/juick/http/www/RSS.java
parentbb93adcf1414001ec3e8439e9440547d52cc8e1d (diff)
domain independence in few places
fixed zero tags exception on user's page
Diffstat (limited to 'src/main/java/com/juick/http/www/RSS.java')
-rw-r--r--src/main/java/com/juick/http/www/RSS.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/juick/http/www/RSS.java b/src/main/java/com/juick/http/www/RSS.java
index c9c9df18..070fa1d5 100644
--- a/src/main/java/com/juick/http/www/RSS.java
+++ b/src/main/java/com/juick/http/www/RSS.java
@@ -18,6 +18,7 @@
package com.juick.http.www;
import com.juick.Message;
+import com.juick.server.Endpoints;
import com.juick.server.MessagesQueries;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -33,7 +34,6 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
- *
* @author ugnich
*/
public class RSS {
@@ -64,8 +64,8 @@ public class RSS {
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://" + Endpoints.wwwJuickCom + "/" + msg.getUser().getUName() + "/" + msg.getMID() + "</link>");
+ out.println("<guid>http://" + Endpoints.wwwJuickCom + "/" + msg.getUser().getUName() + "/" + msg.getMID() + "</guid>");
out.print("<title><![CDATA[@" + msg.getUser().getUName() + ":");
if (!msg.Tags.isEmpty()) {
@@ -76,7 +76,7 @@ public class RSS {
out.println("]]></title>");
out.println("<description><![CDATA[" + PageTemplates.formatMessage(msg.getText()) + "]]></description>");
out.println("<pubDate>" + sdfRSS.format(msg.getDate()) + "</pubDate>");
- out.println("<comments>http://juick.com/" + msg.getUser().getUName() + "/" + msg.getMID() + "</comments>");
+ out.println("<comments>http://" + Endpoints.wwwJuickCom + "/" + msg.getUser().getUName() + "/" + msg.getMID() + "</comments>");
if (!msg.Tags.isEmpty()) {
for (int n = 0; n < msg.Tags.size(); n++) {
out.println("<category>" + msg.Tags.get(n) + "</category>");