mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix account statuses cleanup settings controller for glitch-soc's theming system
This commit is contained in:
parent
8ec4be4233
commit
76c7226eb0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user