summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-09-11 13:54:50 +0100
committerErik Johnston <erik@matrix.org>2019-09-12 13:27:52 +0100
commit6d2557f1e81b70aaa2d0f76466e3d2f32f0ccae2 (patch)
treecfe588e885f1308403e10fdcbf0fad5370fa2a1e /synapse/handlers
parentAdd test for admin redaction ratelimiting. (diff)
downloadsynapse-6d2557f1e81b70aaa2d0f76466e3d2f32f0ccae2.tar.xz
Fix comments
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/_base.py2
-rw-r--r--synapse/handlers/message.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py
index 853b72d8e7..d15c6282fb 100644
--- a/synapse/handlers/_base.py
+++ b/synapse/handlers/_base.py
@@ -105,7 +105,7 @@ class BaseHandler(object):
 
         if is_admin_redaction and self.hs.config.rc_admin_redaction:
             # If we have separate config for admin redactions we use a separate
-            # ratelimiter.
+            # ratelimiter
             allowed, time_allowed = self.admin_redaction_ratelimiter.can_do_action(
                 user_id,
                 time_now,
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index cf605e7a8a..308d5ba80f 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -728,7 +728,7 @@ class EventCreationHandler(object):
         if ratelimit:
             # We check if this is a room admin redacting an event so that we
             # can apply different ratelimiting. We do this by simply checking
-            # its not a self-redaction (to avoid having to look up whether the
+            # it's not a self-redaction (to avoid having to look up whether the
             # user is actually admin or not).
             is_admin_redaction = False
             if event.type == EventTypes.Redaction: