]> git.openstreetmap.org Git - rails.git/commitdiff
Add comment numbers to GUIDs to make them unique
authorTom Hughes <tom@compton.nu>
Fri, 24 May 2013 08:11:59 +0000 (09:11 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 24 May 2013 08:11:59 +0000 (09:11 +0100)
app/views/notes/feed.rss.builder

index df35b70d3bd4fb158a98033e0d40d670272e4fe3..26378a5142299aa3219d98d71c8e3b3f2a9783c4 100644 (file)
@@ -22,8 +22,8 @@ xml.rss("version" => "2.0",
           xml.title "unknown event"
         end
         
-        xml.link url_for(:controller => "browse", :action => "note", :id => comment.note.id, :only_path => false)
-        xml.guid url_for(:controller => "browse", :action => "note", :id => comment.note.id, :only_path => false)
+        xml.link url_for(:controller => "browse", :action => "note", :id => comment.note.id, :anchor => "c#{comment.id}", :only_path => false)
+        xml.guid url_for(:controller => "browse", :action => "note", :id => comment.note.id, :anchor => "c#{comment.id}", :only_path => false)
 
         xml.description do
           xml.cdata! render(:partial => "entry", :object => comment, :formats => [ :html ])