]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/trace_controller.rb
Copy the redaction code from nodes to ways
[rails.git] / app / controllers / trace_controller.rb
index d0e70e9333f123ca03fb139114b706d18591fa4f..05f97bf0d507a667973fbf6405263af44d328c53 100644 (file)
@@ -30,9 +30,7 @@ class TraceController < ApplicationController
     if !display_name.blank?
       target_user = User.active.where(:display_name => display_name).first
       if target_user.nil?
-        @title = t'trace.no_such_user.title'
-        @not_found_user = display_name
-        render :action => 'no_such_user', :status => :not_found
+        render_unknown_user display_name
         return
       end
     end
@@ -187,7 +185,7 @@ class TraceController < ApplicationController
         @trace.tagstring = params[:trace][:tagstring]
         @trace.visibility = params[:trace][:visibility]
         if @trace.save
-          redirect_to :action => 'view'
+          redirect_to :action => 'view', :display_name => @user.display_name
         end
       end
     else