From 44d5c6bc8ffd92cd201380dabe35748e50b6af68 Mon Sep 17 00:00:00 2001 From: Takeshi Umeda Date: Fri, 4 Dec 2020 12:22:35 +0900 Subject: [PATCH] Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270) --- app/controllers/api/v1/accounts/featured_tags_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/accounts/featured_tags_controller.rb b/app/controllers/api/v1/accounts/featured_tags_controller.rb index 014d71956..dc01b577c 100644 --- a/app/controllers/api/v1/accounts/featured_tags_controller.rb +++ b/app/controllers/api/v1/accounts/featured_tags_controller.rb @@ -17,6 +17,6 @@ class Api::V1::Accounts::FeaturedTagsController < Api::BaseController end def set_featured_tags - @featured_tags = @account.suspended? ? @account.featured_tags : [] + @featured_tags = @account.suspended? ? [] : @account.featured_tags end end