From: Tom Hughes Date: Tue, 28 May 2013 21:26:46 +0000 (+0100) Subject: Make user links in note API responses use the main server name X-Git-Tag: live~5689 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/80f48e812f94e2d430f83b96183f93df729572d8 Make user links in note API responses use the main server name --- diff --git a/app/views/notes/_note.json.jsonify b/app/views/notes/_note.json.jsonify index c702d9254..985bcf79c 100644 --- a/app/views/notes/_note.json.jsonify +++ b/app/views/notes/_note.json.jsonify @@ -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 diff --git a/app/views/notes/_note.xml.builder b/app/views/notes/_note.xml.builder index 259f70405..1128f35eb 100644 --- a/app/views/notes/_note.xml.builder +++ b/app/views/notes/_note.xml.builder @@ -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