diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-12-04 12:22:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 04:22:35 +0100 |
commit | 44d5c6bc8ffd92cd201380dabe35748e50b6af68 (patch) | |
tree | 2a92f86cb5f802d2f67b29254d7db5ef45bb84f5 /app/controllers | |
parent | fbe75192436e81b778319c597e0461d0415b5c6f (diff) |
Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/accounts/featured_tags_controller.rb | 2 |
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 014d7195671..dc01b577c1b 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 |