Make user links in note API responses use the main server name

This commit is contained in:
Tom Hughes 2013-05-28 22:26:46 +01:00
parent bd3a7e5f57
commit 80f48e812f
2 changed files with 2 additions and 2 deletions

View 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

View 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