]> cat aescling's git repositories - mastodon.git/commitdiff
Fix AccountFinderConcern::AccountFinder#with_usernames (#5722)
authorysksn <bluewhale1982@gmail.com>
Thu, 16 Nov 2017 11:13:03 +0000 (20:13 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 16 Nov 2017 11:13:03 +0000 (12:13 +0100)
app/models/concerns/account_finder_concern.rb

index 561c7ab9f8216aa7ca913e44a28bb055d321c87b..2e8a7fb3799b48539facaa60254a2113b25cbdbb 100644 (file)
@@ -44,7 +44,7 @@ module AccountFinderConcern
     end
 
     def with_usernames
-      Account.where.not(username: [nil, ''])
+      Account.where.not(username: '')
     end
 
     def matching_username