From 80f48e812f94e2d430f83b96183f93df729572d8 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 May 2013 22:26:46 +0100 Subject: [PATCH] Make user links in note API responses use the main server name --- app/views/notes/_note.json.jsonify | 2 +- app/views/notes/_note.xml.builder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5