]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Bounding boxes are sanitised on creation now
[rails.git] / app / controllers / changeset_controller.rb
index 0c13d3892c3a930c82d444e712b533986be095e8..b736e332b04431d3e6e0cc1cb76484c406fd313f 100644 (file)
@@ -271,8 +271,7 @@ class ChangesetController < ApplicationController
         if @user
           changesets = changesets.where(:user_id => @user.friend_users.public)
         elsif request.format == :html
-          @title = t 'user.no_such_user.title'
-          render :template => 'user/no_such_user', :status => :not_found
+          require_user
           return
         end
       end
@@ -292,7 +291,7 @@ class ChangesetController < ApplicationController
         user_link = render_to_string :partial => "user", :object => user
       end
       
-      if params[:friends] and user
+      if params[:friends] and @user
         @title =  t 'changeset.list.title_friend'
         @heading =  t 'changeset.list.heading_friend'
         @description = t 'changeset.list.description_friend'