about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-12-04 12:22:35 +0900
committerGitHub <noreply@github.com>2020-12-04 04:22:35 +0100
commit44d5c6bc8ffd92cd201380dabe35748e50b6af68 (patch)
tree2a92f86cb5f802d2f67b29254d7db5ef45bb84f5 /app
parentfbe75192436e81b778319c597e0461d0415b5c6f (diff)
Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/v1/accounts/featured_tags_controller.rb2
1 files changed, 1 insertions, 1 deletions
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