Re: [openstreetmap/openstreetmap-website] Use resourceful route for new message (PR #5457)

2025-01-02 Thread Tom Hughes via rails-dev
Merged #5457 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5457#event-15801427611 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

[openstreetmap/openstreetmap-website] Use resourceful route for message reply (PR #5458)

2025-01-02 Thread Anton Khorev via rails-dev
Creates a nested `reply` resource for messages. Changes reply path from `/messages/:id/reply` to `/messages/:id/reply/new` because it's a new reply. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5458 -- Commit Summ

Re: [openstreetmap/openstreetmap-website] Use resourceful route for message reply (PR #5458)

2025-01-02 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. 4bd95493b169dadfcebe45364ecbf156a76f9a9e Use resourceful route for message reply -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5458/files/1c3605d78f0ee0a6cfba650fb5cf5c82c0fcafed..4bd95493b169dadfcebe45364ecbf156a76f9a9e You are

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-02 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + scope "/user/:display_name" do +resource :follow, :only => [:create, :destroy, :edit], :path => "follow" + end Still no redirects. Old `make_friend` urls in emails are going to be broken. -- Reply to this email directly or view it on GitH

Re: [openstreetmap/openstreetmap-website] Remove test_logout_removes_session_token (PR #5456)

2025-01-02 Thread Tom Hughes via rails-dev
Merged #5456 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5456#event-15801427603 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Remove commit parameter from diary controller test (PR #5455)

2025-01-02 Thread Tom Hughes via rails-dev
Merged #5455 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5455#event-15801427614 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Use resourceful route for message reply (PR #5458)

2025-01-02 Thread Tom Hughes via rails-dev
@tomhughes requested changes on this pull request. This mostly looks good but it turns out it fails when applied on top of #5457 as the reply route no longer works properly when combined with the change to new. -- Reply to this email directly or view it on GitHub: https://github.com/openstre

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-02 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + before_action :check_database_writable, :only => [:create, :destroy, :edit] + before_action :lookup_friend, :only => [:create, :destroy, :edit] Do you need `:only` here? It lists all of the actions. -- Reply to this email directly or view it

Re: [openstreetmap/openstreetmap-website] Modify the way "Friends" are added (PR #5261)

2025-01-02 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > + belongs_to :befriender, :class_name => "User", :foreign_key => :user_id, > :inverse_of => :follows + belongs_to :befriendee, :class_name => "User", :foreign_key => :friend_user_id, :inverse_of => :follows We probably want to keep the existing

Re: [openstreetmap/openstreetmap-website] Remove commit parameter from diary controller test (PR #5455)

2025-01-02 Thread Tom Hughes via rails-dev
I suspect that's some ancient history... Look good to me anyway, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5455#issuecomment-2568212668 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] Remove test_logout_removes_session_token (PR #5456)

2025-01-02 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5456#issuecomment-2568217016 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Use resourceful route for new message (PR #5457)

2025-01-02 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5457#issuecomment-2568218960 You are receiving this because you are subscribed to this thread. Message ID: ___

Re: [openstreetmap/openstreetmap-website] Remove "expired unread" short block status (PR #5454)

2025-01-02 Thread Tom Hughes via rails-dev
@tomhughes commented on this pull request. > @@ -27,14 +27,10 @@ def block_status(block) def block_short_status(block) if block.active? - if block.needs_view? -if block.ends_at > Time.now.utc - t("user_blocks.helper.short.active_unread") -else - t