1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-28 14:58:38 +09:00

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

This commit is contained in:
Takeshi Umeda 2020-12-04 12:22:35 +09:00 committed by GitHub
parent fbe7519243
commit 44d5c6bc8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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