From: Takeshi Umeda Date: Fri, 4 Dec 2020 03:22:35 +0000 (+0900) Subject: Fix incorrect conditions for suspended accounts in Get API for account featured tags... X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=44d5c6bc8ffd92cd201380dabe35748e50b6af68;p=mastodon.git Fix incorrect conditions for suspended accounts in Get API for account featured tags (#15270) --- diff --git a/app/controllers/api/v1/accounts/featured_tags_controller.rb b/app/controllers/api/v1/accounts/featured_tags_controller.rb index 014d71956..dc01b577c 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