浏览代码

Fix login sometimes redirecting to paths that are not pages (#11019)

Fix #11016
master^2
Eugen Rochko 5 年前
committed by GitHub
父节点
当前提交
8514ef723c
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 4 个文件被更改,包括 8 次插入0 次删除
  1. +2
    -0
      app/controllers/custom_css_controller.rb
  2. +2
    -0
      app/controllers/manifests_controller.rb
  3. +2
    -0
      app/controllers/media_controller.rb
  4. +2
    -0
      app/controllers/media_proxy_controller.rb

+ 2
- 0
app/controllers/custom_css_controller.rb 查看文件

@@ -1,6 +1,8 @@
# frozen_string_literal: true

class CustomCssController < ApplicationController
skip_before_action :store_current_location

before_action :set_cache_headers

def show


+ 2
- 0
app/controllers/manifests_controller.rb 查看文件

@@ -1,6 +1,8 @@
# frozen_string_literal: true

class ManifestsController < ApplicationController
skip_before_action :store_current_location

def show
render json: InstancePresenter.new, serializer: ManifestSerializer
end


+ 2
- 0
app/controllers/media_controller.rb 查看文件

@@ -3,6 +3,8 @@
class MediaController < ApplicationController
include Authorization

skip_before_action :store_current_location

before_action :set_media_attachment
before_action :verify_permitted_status!



+ 2
- 0
app/controllers/media_proxy_controller.rb 查看文件

@@ -3,6 +3,8 @@
class MediaProxyController < ApplicationController
include RoutingHelper

skip_before_action :store_current_location

def show
RedisLock.acquire(lock_options) do |lock|
if lock.acquired?


正在加载...
取消
保存