Remove duplicate cache header setting before action (#33833)
This commit is contained in:
@@ -4,7 +4,6 @@ class SeveredRelationshipsController < ApplicationController
|
||||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_cache_headers
|
||||
|
||||
before_action :set_event, only: [:following, :followers]
|
||||
|
||||
@@ -49,8 +48,4 @@ class SeveredRelationshipsController < ApplicationController
|
||||
def acct(account)
|
||||
account.local? ? account.local_username_and_domain : account.acct
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user