about summary refs log tree commit diff
path: root/app/controllers/privacy_controller.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-10-07 11:35:31 +0200
committerGitHub <noreply@github.com>2022-10-07 11:35:31 +0200
commit2c8d1880cc3e1ed50a541a1d048280537698a29a (patch)
tree3e06881da1bb4e990e42be6bea954174480a43a5 /app/controllers/privacy_controller.rb
parentc19a3517a067344af1133b73121cb7ae9fa56abc (diff)
Fix /privacy-policy not using the appropriate resource packs (#1853)
Fixes #1852

This was an oversight from last upstream merge, failing to account for
glitch-soc's theming system.
Diffstat (limited to 'app/controllers/privacy_controller.rb')
-rw-r--r--app/controllers/privacy_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/privacy_controller.rb b/app/controllers/privacy_controller.rb
index ced84dbe5..126bb0128 100644
--- a/app/controllers/privacy_controller.rb
+++ b/app/controllers/privacy_controller.rb
@@ -3,6 +3,8 @@
 class PrivacyController < ApplicationController
   layout 'public'
 
+  before_action :set_pack
+
   before_action :set_instance_presenter
   before_action :set_expires_in
 
@@ -12,6 +14,10 @@ class PrivacyController < ApplicationController
 
   private
 
+  def set_pack
+    use_pack 'public'
+  end
+
   def set_instance_presenter
     @instance_presenter = InstancePresenter.new
   end