about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2018-09-13 18:53:09 -0400
committerEugen Rochko <eugen@zeonfederated.com>2018-09-14 00:53:09 +0200
commit40dd19be37852d4442a924c2a74bcbbfbf57e054 (patch)
treee47f0e5fbf2fa08db31583c0566c14c715daaf2e /app
parent4959ead07c56be120fd00b10c5da4f9db0bb1ea1 (diff)
Misc. typos (#8694)
Found via `codespell -q 3 --skip="./app/javascript/mastodon/locales,./config/locales"`
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth/sessions_controller.rb2
-rw-r--r--app/javascript/mastodon/features/compose/util/url_regex.js2
-rw-r--r--app/javascript/mastodon/features/ui/util/react_router_helpers.js2
-rw-r--r--app/models/status.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/auth/sessions_controller.rb b/app/controllers/auth/sessions_controller.rb
index bc980009e..901e82331 100644
--- a/app/controllers/auth/sessions_controller.rb
+++ b/app/controllers/auth/sessions_controller.rb
@@ -128,7 +128,7 @@ class Auth::SessionsController < Devise::SessionsController
   def clear_site_data
     return if continue_after?
 
-    # Should be '"*"' but that doen't work in Chrome (neither does '"executionContexts"')
+    # Should be '"*"' but that doesn't work in Chrome (neither does '"executionContexts"')
     # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
     response.headers['Clear-Site-Data'] = '"cache", "cookies", "storage"'
   end
diff --git a/app/javascript/mastodon/features/compose/util/url_regex.js b/app/javascript/mastodon/features/compose/util/url_regex.js
index d5e39e0d5..7f1e17620 100644
--- a/app/javascript/mastodon/features/compose/util/url_regex.js
+++ b/app/javascript/mastodon/features/compose/util/url_regex.js
@@ -170,7 +170,7 @@ export const urlRegex = (function() {
       ')'                                   +
     '\\)',
     'i');
-  // Valid end-of-path chracters (so /foo. does not gobble the period).
+  // Valid end-of-path characters (so /foo. does not gobble the period).
   // 1. Allow =&# for empty URL parameters and other URL-join artifacts
   regexen.validUrlPathEndingChars = regexSupplant(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}~&\|@]|(?:#{validUrlBalancedParens})/i);
   // Allow @ in a url, but only in the middle. Catch things like http://example.com/@user/
diff --git a/app/javascript/mastodon/features/ui/util/react_router_helpers.js b/app/javascript/mastodon/features/ui/util/react_router_helpers.js
index 32dfe320b..d452b871f 100644
--- a/app/javascript/mastodon/features/ui/util/react_router_helpers.js
+++ b/app/javascript/mastodon/features/ui/util/react_router_helpers.js
@@ -26,7 +26,7 @@ WrappedSwitch.propTypes = {
   children: PropTypes.node,
 };
 
-// Small Wraper to extract the params from the route and pass
+// Small Wrapper to extract the params from the route and pass
 // them to the rendered component, together with the content to
 // be rendered inside (the children)
 export class WrappedRoute extends React.Component {
diff --git a/app/models/status.rb b/app/models/status.rb
index 35655bff2..f2b5cc6ce 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -241,7 +241,7 @@ class Status < ApplicationRecord
 
     def as_direct_timeline(account, limit = 20, max_id = nil, since_id = nil, cache_ids = false)
       # direct timeline is mix of direct message from_me and to_me.
-      # 2 querys are executed with pagination.
+      # 2 queries are executed with pagination.
       # constant expression using arel_table is required for partial index
 
       # _from_me part does not require any timeline filters