From 692d57744fd4fa6d90f1fa5a579a1ec15bc59bc6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 24 May 2013 09:11:59 +0100 Subject: [PATCH] Add comment numbers to GUIDs to make them unique --- app/views/notes/feed.rss.builder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]) -- 2.39.5