Skip to content

Commit

Permalink
Fix login sometimes redirecting to paths that are not pages (mastodon…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent d2a17f5 commit 39e97c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/custom_css_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

class CustomCssController < ApplicationController
skip_before_action :store_current_location

before_action :set_cache_headers

def show
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/manifests_controller.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/media_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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!

Expand Down
2 changes: 2 additions & 0 deletions app/controllers/media_proxy_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 39e97c1

Please sign in to comment.