[openstreetmap/openstreetmap-website] Add profile location (PR #5302)
David Tsiklauri
notifications at github.com
Wed Mar 5 08:00:02 UTC 2025
@nertc commented on this pull request.
> @@ -148,7 +148,11 @@ def search_osm_nominatim_reverse
:type => object_type, :id => object_id)
end
- render :action => "results"
+ if params[:format] == "json"
+ render :json => @results
+ else
+ render :action => "results"
+ end
Code was changed to use `respond_to`.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5302#discussion_r1980881997
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5302/review/2660256137 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250305/8aa7b591/attachment.htm>
More information about the rails-dev
mailing list