summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2017-11-29 16:46:45 +0000
committerMatthew Hodgson <matthew@matrix.org>2017-11-29 16:46:45 +0000
commit47d99a20d5b4ae58ece15be8a43e96e39a9b943e (patch)
tree269ac8dcbad82ec855d9601517135998d86998a1 /synapse/server.py
parentsanity checks (diff)
downloadsynapse-47d99a20d5b4ae58ece15be8a43e96e39a9b943e.tar.xz
Add user_directory_include_pattern config param to expand search results to additional users
Initial commit; this doesn't work yet - the LIKE filtering seems too aggressive.
It also needs _do_initial_spam to be aware of prepopulating the whole user_directory_search table with all users...
...and it needs a handle_user_signup() or something to be added so that new signups get incrementally added to the table too.

Committing it here as a WIP
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 10e3e9a4f1..6de33019d2 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -50,7 +50,7 @@ from synapse.handlers.events import EventHandler, EventStreamHandler
 from synapse.handlers.initial_sync import InitialSyncHandler
 from synapse.handlers.receipts import ReceiptsHandler
 from synapse.handlers.read_marker import ReadMarkerHandler
-from synapse.handlers.user_directory import UserDirectoyHandler
+from synapse.handlers.user_directory import UserDirectoryHandler
 from synapse.handlers.groups_local import GroupsLocalHandler
 from synapse.handlers.profile import ProfileHandler
 from synapse.groups.groups_server import GroupsServerHandler
@@ -321,7 +321,7 @@ class HomeServer(object):
         return ActionGenerator(self)
 
     def build_user_directory_handler(self):
-        return UserDirectoyHandler(self)
+        return UserDirectoryHandler(self)
 
     def build_groups_local_handler(self):
         return GroupsLocalHandler(self)