X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8dd6f9f52fcd563be184da0495ce9b97a063fb3f..e756dbae7f3715561de5688e6503b60fdfe0327d:/app/controllers/changeset_controller.rb diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 0c13d3892..b736e332b 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -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'