From: ysksn Date: Thu, 16 Nov 2017 11:13:03 +0000 (+0900) Subject: Fix AccountFinderConcern::AccountFinder#with_usernames (#5722) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=9e3d24a150acf118789461797735fc0e4a8a30ea;p=mastodon.git Fix AccountFinderConcern::AccountFinder#with_usernames (#5722) --- diff --git a/app/models/concerns/account_finder_concern.rb b/app/models/concerns/account_finder_concern.rb index 561c7ab9f..2e8a7fb37 100644 --- a/app/models/concerns/account_finder_concern.rb +++ b/app/models/concerns/account_finder_concern.rb @@ -44,7 +44,7 @@ module AccountFinderConcern end def with_usernames - Account.where.not(username: [nil, '']) + Account.where.not(username: '') end def matching_username