mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-24 14:17:08 +00:00
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.
This commit is contained in:
parent
c19a3517a0
commit
2c8d1880cc
|
@ -3,6 +3,8 @@
|
||||||
class PrivacyController < ApplicationController
|
class PrivacyController < ApplicationController
|
||||||
layout 'public'
|
layout 'public'
|
||||||
|
|
||||||
|
before_action :set_pack
|
||||||
|
|
||||||
before_action :set_instance_presenter
|
before_action :set_instance_presenter
|
||||||
before_action :set_expires_in
|
before_action :set_expires_in
|
||||||
|
|
||||||
|
@ -12,6 +14,10 @@ class PrivacyController < ApplicationController
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def set_pack
|
||||||
|
use_pack 'public'
|
||||||
|
end
|
||||||
|
|
||||||
def set_instance_presenter
|
def set_instance_presenter
|
||||||
@instance_presenter = InstancePresenter.new
|
@instance_presenter = InstancePresenter.new
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue