summary refs log tree commit diff
path: root/synapse/handlers/profile.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-10 11:05:43 +0100
committerErik Johnston <erik@matrix.org>2017-05-10 11:05:43 +0100
commitb990b2fce5bb96c1c8eebcb0525ffcd011a22556 (patch)
treecd571758a5d13ea8e63c01b648cc5ba02a6676e5 /synapse/handlers/profile.py
parentMerge branch 'release-v0.21.0' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-b990b2fce5bb96c1c8eebcb0525ffcd011a22556.tar.xz
Add per user ratelimiting overrides
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r--synapse/handlers/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index 9bf638f818..7abee98dea 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -156,7 +156,7 @@ class ProfileHandler(BaseHandler):
         if not self.hs.is_mine(user):
             return
 
-        self.ratelimit(requester)
+        yield self.ratelimit(requester)
 
         room_ids = yield self.store.get_rooms_for_user(
             user.to_string(),