Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270)

lolsob-rspec
Takeshi Umeda 2020-12-04 12:22:35 +09:00 committed by GitHub
parent 1fce69291f
commit fabb864526
1 changed files with 1 additions and 1 deletions

View File

@ -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