Error in a changeset feed is requested for a non-existent user
authorTom Hughes <tom@compton.nu>
Tue, 1 May 2012 19:40:59 +0000 (20:40 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 1 May 2012 19:40:59 +0000 (20:40 +0100)
app/controllers/application_controller.rb
app/controllers/changeset_controller.rb

index 791334d2df98e0a18c5828c0f17b4ce115ea382a..b512a404dc5a3c7604cd9dffbe4b8018e23f1771 100644 (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 
index 34ca24762a9b42783d87cd86652929c4c5a6bca0..947732fb1a15cb7778d772165d787f5397846170 100644 (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