summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-02 18:37:31 +0100
committerErik Johnston <erik@matrix.org>2016-08-02 18:37:31 +0100
commit9e66c58cebfd219a3a777944194cef292fcc5aad (patch)
tree79941e43cb930b31dddb72bc2a61c746d2141b9c /synapse/rest/media/v1
parentMake it actually compile (diff)
downloadsynapse-9e66c58cebfd219a3a777944194cef292fcc5aad.tar.xz
Spelling.
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 4624b89014..e1212313e1 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -373,7 +373,7 @@ class PreviewUrlResource(Resource):
                     new_desc = ""
 
                     # This splits the paragraph into words, but keeping the
-                    # (proceeding) whitespace intact so we can easily concat
+                    # (preceeding) whitespace intact so we can easily concat
                     # words back together.
                     for match in re.finditer("\s*\S+", description):
                         word = match.group()
@@ -383,7 +383,7 @@ class PreviewUrlResource(Resource):
                         if len(word) + len(new_desc) < MAX_SIZE:
                             new_desc += word
                         else:
-                            # At thi point the next word *will* take us over
+                            # At this point the next word *will* take us over
                             # MAX_SIZE, but we also want to ensure that its not
                             # a huge word. If it is add it anyway and we'll
                             # truncate later.
@@ -396,7 +396,7 @@ class PreviewUrlResource(Resource):
                         new_desc = new_desc[:MAX_SIZE]
 
                     # We always add an ellipsis because at the very least
-                    # we chooped mid paragraph.
+                    # we chopped mid paragraph.
                     description = new_desc.strip() + "…"
                 og['og:description'] = description if description else None