]> cat aescling's git repositories - mastodon.git/commitdiff
Fix account statuses cleanup settings controller for glitch-soc's theming system
authorClaire <claire.github-309c@sitedethib.com>
Mon, 9 Aug 2021 21:28:06 +0000 (23:28 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 9 Aug 2021 21:28:06 +0000 (23:28 +0200)
app/controllers/statuses_cleanup_controller.rb

index be234cdcb97ca0d376d5ac0013f88832a5cbc754..3d4f4af021d4cb9e5cf212b26faca733f847632b 100644 (file)
@@ -6,6 +6,7 @@ class StatusesCleanupController < ApplicationController
   before_action :authenticate_user!
   before_action :set_policy
   before_action :set_body_classes
+  before_action :set_pack
 
   def show; end
 
@@ -21,6 +22,10 @@ class StatusesCleanupController < ApplicationController
 
   private
 
+  def set_pack
+    use_pack 'settings'
+  end
+
   def set_policy
     @policy = current_account.statuses_cleanup_policy || current_account.build_statuses_cleanup_policy(enabled: false)
   end