From: Tom Hughes Date: Fri, 24 May 2013 08:11:59 +0000 (+0100) Subject: Add comment numbers to GUIDs to make them unique X-Git-Tag: live~4999 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/692d57744fd4fa6d90f1fa5a579a1ec15bc59bc6 Add comment numbers to GUIDs to make them unique --- diff --git a/app/views/notes/feed.rss.builder b/app/views/notes/feed.rss.builder index df35b70d3..26378a514 100644 --- a/app/views/notes/feed.rss.builder +++ b/app/views/notes/feed.rss.builder @@ -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 ])