mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 13:17:35 +00:00
Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270)
This commit is contained in:
parent
fbe7519243
commit
44d5c6bc8f
|
@ -17,6 +17,6 @@ class Api::V1::Accounts::FeaturedTagsController < Api::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_featured_tags
|
def set_featured_tags
|
||||||
@featured_tags = @account.suspended? ? @account.featured_tags : []
|
@featured_tags = @account.suspended? ? [] : @account.featured_tags
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue