Make user links in note API responses use the main server name
This commit is contained in:
parent
bd3a7e5f57
commit
80f48e812f
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ json.properties do
|
||||||
if comment.author
|
if comment.author
|
||||||
json.uid comment.author.id
|
json.uid comment.author.id
|
||||||
json.user comment.author.display_name
|
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
|
end
|
||||||
|
|
||||||
json.action comment.event
|
json.action comment.event
|
||||||
|
|
|
@ -18,7 +18,7 @@ xml.note("lon" => note.lon, "lat" => note.lat) do
|
||||||
if comment.author
|
if comment.author
|
||||||
xml.uid comment.author.id
|
xml.uid comment.author.id
|
||||||
xml.user comment.author.display_name
|
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
|
end
|
||||||
|
|
||||||
if comment.body
|
if comment.body
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue