2
0

Remove duplicate cache header setting before action (#33833)

This commit is contained in:
Matt Jankowski
2025-02-05 04:19:08 -05:00
committed by GitHub
parent 8dce5138dd
commit c3419d146a
12 changed files with 0 additions and 62 deletions

View File

@@ -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