Error in a changeset feed is requested for a non-existent user

This commit is contained in:
Tom Hughes 2012-05-01 20:40:59 +01:00
parent ed8c76cba2
commit 6bafc93435
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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