You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/10/13 20:33:06 UTC

svn commit: r320864 - /incubator/roller/branches/roller_2.0/src/org/roller/presentation/servlets/CommentServlet.java

Author: agilliland
Date: Thu Oct 13 11:33:03 2005
New Revision: 320864

URL: http://svn.apache.org/viewcvs?rev=320864&view=rev
Log:
update comments url sent out in email notifications.


Modified:
    incubator/roller/branches/roller_2.0/src/org/roller/presentation/servlets/CommentServlet.java

Modified: incubator/roller/branches/roller_2.0/src/org/roller/presentation/servlets/CommentServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_2.0/src/org/roller/presentation/servlets/CommentServlet.java?rev=320864&r1=320863&r2=320864&view=diff
==============================================================================
--- incubator/roller/branches/roller_2.0/src/org/roller/presentation/servlets/CommentServlet.java (original)
+++ incubator/roller/branches/roller_2.0/src/org/roller/presentation/servlets/CommentServlet.java Thu Oct 13 11:33:03 2005
@@ -351,19 +351,9 @@
             }
             
             // Build link back to comment
-            
             StringBuffer commentURL = new StringBuffer(rootURL);
-            commentURL.append("/comments/");
-            commentURL.append(user.getUserName());
-            
-            org.roller.pojos.Template page = rreq.getPage();
-            if (page == null) {
-                commentURL.append("?entry=");
-            } else {
-                commentURL.append("/").append(page.getLink()).append("/");
-            }
-            
-            commentURL.append(entry.getAnchor());
+            commentURL.append(entry.getPermaLink());
+            commentURL.append("#comments");
             
             if (escapeHtml) {
                 msg.append(commentURL.toString());