]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_note.xml.builder
Make user links in note API responses use the main server name
[rails.git] / app / views / notes / _note.xml.builder
index 259f70405790cfac915f6f8c25b7edd4480e9dbb..1128f35ebf4477c4ce640da2804ae56e623c1aa6 100644 (file)
@@ -18,7 +18,7 @@ xml.note("lon" => note.lon, "lat" => note.lat) do
         if comment.author
           xml.uid comment.author.id
           xml.user comment.author.display_name
-          xml.user_url user_url(:display_name => comment.author.display_name)
+          xml.user_url user_url(:display_name => comment.author.display_name, :host => SERVER_URL)
         end
 
         if comment.body