[openstreetmap/openstreetmap-website] Fix timeout messages for former browse pages (PR #4617)

Anton Khorev notifications at github.com
Thu Apr 4 15:03:12 UTC 2024


@AntonKhorev commented on this pull request.



> @@ -1,6 +1,6 @@
 atom_feed(:language => I18n.locale, :schema_date => 2009,
-          :id => url_for(params.merge(:only_path => false)),
-          :root_url => url_for(params.merge(:only_path => false, :format => nil)),
+          :id => url_for(params.permit(:format, :display_name, :bbox, :friends, :nearby).merge(:only_path => false)),
+          :root_url => url_for(params.permit(:format, :display_name, :bbox, :friends, :nearby).merge(:action => :index, :format => nil, :only_path => false)),

Added a variable.

I didn't try to write clean `params.permit` code because some dubious code already exist. I was going to fix it later.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4617#discussion_r1551859787
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4617/review/1980203401 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240404/6403668b/attachment.htm>


More information about the rails-dev mailing list