]> cat aescling's git repositories - mastodon.git/commitdiff
Fix incorrect conditions for suspended accounts in Get API for account featured tags...
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Fri, 4 Dec 2020 03:22:35 +0000 (12:22 +0900)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 03:22:35 +0000 (04:22 +0100)
app/controllers/api/v1/accounts/featured_tags_controller.rb

index 014d7195671fad5ea1525c6f2277a2824171f294..dc01b577c1b5f8d246cb305ee0b93eb180051888 100644 (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