Make user links in note API responses use the main server name
authorTom Hughes <tom@compton.nu>
Tue, 28 May 2013 21:26:46 +0000 (22:26 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 28 May 2013 21:26:46 +0000 (22:26 +0100)
app/views/notes/_note.json.jsonify
app/views/notes/_note.xml.builder

index c702d9254b49aa886426887da8faf84fcf5b4b94..985bcf79c6f8f7126ddecfbf466e165ab6ae0f91 100644 (file)
@@ -20,7 +20,7 @@ json.properties do
     if comment.author
       json.uid comment.author.id
       json.user comment.author.display_name
-      json.user_url user_url(:display_name => comment.author.display_name)
+      json.user_url user_url(:display_name => comment.author.display_name, :host => SERVER_URL)
     end
 
     json.action comment.event
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