Merge remote-tracking branch 'upstream/pull/5458'

This commit is contained in:
Tom Hughes 2025-01-03 19:21:29 +00:00
commit 44ec0e02fc
9 changed files with 128 additions and 107 deletions

View file

@ -1752,8 +1752,6 @@ en:
title: "No such message"
heading: "No such message"
body: "Sorry there is no message with that id."
reply:
wrong_user: "You are logged in as '%{user}' but the message you have asked to reply to was not sent to that user. Please log in as the correct user in order to reply."
show:
title: "Read message"
reply_button: "Reply"
@ -1813,6 +1811,9 @@ en:
people_mapping_nearby: "people mapping nearby"
message:
destroy_button: "Delete"
replies:
new:
wrong_user: "You are logged in as '%{user}' but the message you have asked to reply to was not sent to that user. Please log in as the correct user in order to reply."
passwords:
new:
title: "Lost password"

View file

@ -315,7 +315,7 @@ OpenStreetMap::Application.routes.draw do
post :mark
patch :unmute
match :reply, :via => [:get, :post]
resource :reply, :module => :messages, :path_names => { :new => "new" }, :only => :new
end
namespace :messages, :path => "/messages" do
resource :inbox, :only => :show
@ -326,6 +326,7 @@ OpenStreetMap::Application.routes.draw do
get "/user/:display_name/outbox", :to => redirect(:path => "/messages/outbox")
get "/message/new/:display_name", :to => redirect(:path => "/messages/new/%{display_name}")
get "/message/read/:message_id", :to => redirect(:path => "/messages/%{message_id}")
get "/messages/:message_id/reply", :to => redirect(:path => "/messages/%{message_id}/reply/new")
# muting users
scope "/user/:display_name" do