Conflicts: - app/controllers/admin/base_controller.rb - app/controllers/filters_controller.rb - app/controllers/invites_controller.rb - app/controllers/settings/deletes_controller.rb - app/controllers/settings/exports_controller.rb - app/controllers/settings/follower_domains_controller.rb - app/controllers/settings/migrations_controller.rb - app/controllers/settings/notifications_controller.rb - app/controllers/settings/preferences_controller.rb - app/controllers/settings/two_factor_authentication/recovery_codes_controller.rb - app/javascript/packs/public.js - app/views/settings/profiles/show.html.haml Conflicts were mostly due to the addition of body classes to the settings page, this was caused by rejecting upstream changes for most of those files and modifying Settings::BaseController instead. Another cause of conflicts was the deletion of client-side checking of display name / bio length, this was modified in app/javascript/core/settings.js instead.
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			403 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			403 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
module Admin
 | 
						|
  class BaseController < ApplicationController
 | 
						|
    include Authorization
 | 
						|
    include AccountableConcern
 | 
						|
 | 
						|
    layout 'admin'
 | 
						|
 | 
						|
    before_action :require_staff!
 | 
						|
    before_action :set_pack
 | 
						|
    before_action :set_body_classes
 | 
						|
 | 
						|
    private
 | 
						|
 | 
						|
    def set_body_classes
 | 
						|
      @body_classes = 'admin'
 | 
						|
    end
 | 
						|
 | 
						|
    def set_pack
 | 
						|
      use_pack 'admin'
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |