Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/person.rb')
-rw-r--r--app/models/person.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/person.rb b/app/models/person.rb
index cc6748c9d..a8c9720b6 100644
--- a/app/models/person.rb
+++ b/app/models/person.rb
@@ -62,7 +62,7 @@ class Person < ActiveRecord::Base
end
def self.search(query, user)
- return [] if query.to_s.blank? || query.to_s.length < 3
+ return [] if query.to_s.blank? || query.to_s.length < 2
sql, tokens = self.search_query_string(query)
@@ -84,8 +84,6 @@ class Person < ActiveRecord::Base
}.call
end
-
-
def self.public_search(query, opts={})
return [] if query.to_s.blank? || query.to_s.length < 3
sql, tokens = self.search_query_string(query)