lib/card/auth/setup.rb in card-1.101.7 vs lib/card/auth/setup.rb in card-1.102.0
- old
+ new
@@ -45,10 +45,10 @@
{ right_id: Card::AccountID, creator_id: ["ne", Card::WagnBotID] }
end
def user_account_count
cql = user_account_cql
- cql[:not] = { id: ["in"].concat(@hidden_accounts) } if @hidden_accounts
+ cql[:not] = { id: ["in"].concat(@hidden_accounts) } if @hidden_accounts.present?
as_bot { Card.count_by_cql cql }
end
end
end
end