about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-08-09 23:28:06 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-08-09 23:28:06 +0200
commit76c7226eb0084ac3340d9935f1dbcbfaa132f436 (patch)
tree419d2802098ccba0e8d13b3d54078344eafbb9c3 /app
parent8ec4be4233d2bfd9142860b25df639fc23655f0f (diff)
Fix account statuses cleanup settings controller for glitch-soc's theming system
Diffstat (limited to 'app')
-rw-r--r--app/controllers/statuses_cleanup_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/statuses_cleanup_controller.rb b/app/controllers/statuses_cleanup_controller.rb
index be234cdcb..3d4f4af02 100644
--- a/app/controllers/statuses_cleanup_controller.rb
+++ b/app/controllers/statuses_cleanup_controller.rb
@@ -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