Skip to content

Commit

Permalink
Fix /activity endpoint not require signature in authorized fetch mode (
Browse files Browse the repository at this point in the history
…mastodon#15592)

Fixes mastodon#15589

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
ClearlyClaire and ClearlyClaire authored Jan 19, 2021
1 parent e46b50e commit 2ff01f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/statuses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class StatusesController < ApplicationController

layout 'public'

before_action :require_signature!, only: :show, if: -> { request.format == :json && authorized_fetch_mode? }
before_action :require_signature!, only: [:show, :activity], if: -> { request.format == :json && authorized_fetch_mode? }
before_action :set_status
before_action :set_instance_presenter
before_action :set_link_headers
Expand Down

0 comments on commit 2ff01f7

Please sign in to comment.