From 7e0108bccd8b7956a7f6736fde9ddf5efcf672f4 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Sun, 6 Nov 2022 01:18:29 +0100 Subject: [PATCH] Fix wrong "only" target in previous commit --- app/controllers/api/v1/trends/statuses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/trends/statuses_controller.rb b/app/controllers/api/v1/trends/statuses_controller.rb index 5a7a41e3a7..b88fad8811 100644 --- a/app/controllers/api/v1/trends/statuses_controller.rb +++ b/app/controllers/api/v1/trends/statuses_controller.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true class Api::V1::Trends::StatusesController < Api::BaseController - before_action :require_user!, only: [:show], if: :require_auth? + before_action :require_user!, only: [:index], if: :require_auth? before_action :set_statuses after_action :insert_pagination_headers