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

This commit is contained in:
Tom Hughes 2025-01-26 10:09:17 +00:00
commit 6ef11b2c9a
12 changed files with 286 additions and 140 deletions

View file

@ -1782,14 +1782,17 @@ en:
destroy_button: "Delete"
back: "Back"
wrong_user: "You are logged in as '%{user}' but the message you have asked to read was not sent by or to that user. Please log in as the correct user in order to read it."
mark:
as_read: "Message marked as read"
as_unread: "Message marked as unread"
unmute:
notice: "Message has been moved to Inbox"
error: "The message could not be moved to the Inbox."
destroy:
destroyed: "Message deleted"
read_marks:
create:
notice: "Message marked as read"
destroy:
notice: "Message marked as unread"
mutes:
destroy:
notice: "Message has been moved to Inbox"
error: "The message could not be moved to the Inbox."
mailboxes:
heading:
my_inbox: "My Inbox"

View file

@ -322,10 +322,11 @@ OpenStreetMap::Application.routes.draw do
# messages
resources :messages, :path_names => { :new => "new/:display_name" }, :id => /\d+/, :only => [:new, :create, :show, :destroy] do
post :mark
patch :unmute
resource :reply, :module => :messages, :path_names => { :new => "new" }, :only => :new
scope :module => :messages do
resource :reply, :path_names => { :new => "new" }, :only => :new
resource :read_mark, :only => [:create, :destroy]
resource :mute, :only => :destroy
end
end
namespace :messages, :path => "/messages" do
resource :inbox, :only => :show