Browse Source
Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270)
master
Takeshi Umeda
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |