Error in a changeset feed is requested for a non-existent user
This commit is contained in:
parent
ed8c76cba2
commit
6bafc93435
2 changed files with 5 additions and 2 deletions
|
@ -399,7 +399,10 @@ class ApplicationController < ActionController::Base
|
|||
@title = t "user.no_such_user.title"
|
||||
@not_found_user = name
|
||||
|
||||
render :template => "user/no_such_user", :status => :not_found
|
||||
respond_to do |format|
|
||||
format.html { render :template => "user/no_such_user", :status => :not_found }
|
||||
format.all { render :nothing => true, :status => :not_found }
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -260,7 +260,7 @@ class ChangesetController < ApplicationController
|
|||
else
|
||||
changesets = changesets.where("false")
|
||||
end
|
||||
elsif request.format == :html
|
||||
else
|
||||
render_unknown_user params[:display_name]
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue