Browse Source

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

pull/4/head
ThibG 4 years ago
committed by Eugen Rochko
parent
commit
5f63339744
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      app/controllers/follower_accounts_controller.rb
  2. +2
    -0
      app/controllers/following_accounts_controller.rb

+ 2
- 0
app/controllers/follower_accounts_controller.rb View File

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

+ 2
- 0
app/controllers/following_accounts_controller.rb View File

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

Loading…
Cancel
Save