Fix more ActivityPub queries setting cookies and preventing caching (#11557)

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
ThibG 2019-08-12 22:26:07 +02:00 committed by Eugen Rochko
parent 789cb3c028
commit 5f63339744
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@ class FollowerAccountsController < ApplicationController
before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? } before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? }
before_action :set_cache_headers before_action :set_cache_headers
skip_around_action :set_locale, if: -> { request.format == :json }
def index def index
respond_to do |format| respond_to do |format|
format.html do format.html do

View File

@ -7,6 +7,8 @@ class FollowingAccountsController < ApplicationController
before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? } before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? }
before_action :set_cache_headers before_action :set_cache_headers
skip_around_action :set_locale, if: -> { request.format == :json }
def index def index
respond_to do |format| respond_to do |format|
format.html do format.html do