A platform for community discussion. Free, open, simple.
DEV: Fix random typos (#34987)
Jarek Radosz2773ee4963bc
diff --git a/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs b/app/assets/javascripts/discourse/app/components/bookmark-menu.gjsindex 7d91d6adb43..ce2fabd901b 100644--- a/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs+++ b/app/assets/javascripts/discourse/app/components/bookmark-menu.gjs@@ -124,7 +124,7 @@ export default class BookmarkMenu extends Component {this.bookmarkCreatePromise = this.bookmarkManager.create();this.bookmarkCreatePromise.then(() => {- // We show the menu with Edit/Delete options if the bokmark exists,+ // We show the menu with Edit/Delete options if the bookmark exists,// so this "quicksave" will do nothing in that case.// NOTE: Need a nicer way to handle this; otherwise as soon as you save// a bookmark, it switches to the other Edit/Delete menu.diff --git a/app/assets/javascripts/discourse/app/components/post-stream.gjs b/app/assets/javascripts/discourse/app/components/post-stream.gjsindex 7e328e38a44..505d78572c2 100644--- a/app/assets/javascripts/discourse/app/components/post-stream.gjs+++ b/app/assets/javascripts/discourse/app/components/post-stream.gjs@@ -363,7 +363,7 @@ export default class PostStream extends Component {class="post-stream__bottom-boundary"{{this.viewportTracker.registerBottomBoundary [email protected]}}></div>- {{! this pluging outlet is only inserted when the real bottom of the post-stream is rendered+ {{! this plugin outlet is only inserted when the real bottom of the post-stream is renderedthis is useful for plugins that want to render something at the bottom of the post-streame.g. a "no more posts" message }}<PluginOutletdiff --git a/app/assets/javascripts/discourse/app/components/post/quoted-content.gjs b/app/assets/javascripts/discourse/app/components/post/quoted-content.gjsindex f83c9fccc18..f2684d7542d 100644--- a/app/assets/javascripts/discourse/app/components/post/quoted-content.gjs+++ b/app/assets/javascripts/discourse/app/components/post/quoted-content.gjs@@ -184,7 +184,7 @@ export default class PostQuotedContent extends Component {>{{#if @wrapperElement}}{{! `this.OptionalWrapperComponent` can be empty to render only the children while decorating cooked content.- we need to handle the attributtes below in the existing wrapper received as @wrapperElement in this case }}+ we need to handle the attributes below in the existing wrapper received as @wrapperElement in this case }}{{elementClass(if this.isQuotedPostIgnored "ignored-user")target=@wrapperElementdiff --git a/app/assets/javascripts/discourse/app/components/user-stream.gjs b/app/assets/javascripts/discourse/app/components/user-stream.gjsindex dfd92691919..b85b4d5758c 100644--- a/app/assets/javascripts/discourse/app/components/user-stream.gjs+++ b/app/assets/javascripts/discourse/app/components/user-stream.gjs@@ -33,7 +33,7 @@ export default class UserStreamComponent extends Component {get usernamePath() {// We want the draft_username for the drafts route,// in-case you are editing a post that was created by another user- // the draft usernmae will show the post item to show the editing user+ // the draft username will show the post item to show the editing userif (this.router.currentRouteName === "userActivity.drafts") {return "draft_username";}diff --git a/app/assets/javascripts/discourse/app/lib/sidebar/base-community-section-link.js b/app/assets/javascripts/discourse/app/lib/sidebar/base-community-section-link.jsindex da964f037e4..26a151f2318 100644--- a/app/assets/javascripts/discourse/app/lib/sidebar/base-community-section-link.js+++ b/app/assets/javascripts/discourse/app/lib/sidebar/base-community-section-link.js@@ -2,7 +2,7 @@ import { setOwner } from "@ember/owner";import { service } from "@ember/service";/**- * Base class representing a sidebar communtiy section link interface.+ * Base class representing a sidebar community section link interface.*/export default class BaseCommunitySectionLink {@service currentUser;diff --git a/app/assets/javascripts/discourse/app/services/composer.js b/app/assets/javascripts/discourse/app/services/composer.jsindex d60ee978b63..bfb4058010d 100644--- a/app/assets/javascripts/discourse/app/services/composer.js+++ b/app/assets/javascripts/discourse/app/services/composer.js@@ -700,8 +700,8 @@ export default class ComposerService extends Service {menuItem);if (typeof menuItem.action === "function") {- // note due to the way args are passed to actions we need- // to treate the explicity toolbarEvent as a fallback for no+ // note: due to the way args are passed to actions we need+ // to create the explicity toolbarEvent as a fallback for no// event// Long term we want to avoid needing this awkwardness and pass// the event explicitlydiff --git a/app/assets/javascripts/discourse/tests/integration/components/decorated-html-test.gjs b/app/assets/javascripts/discourse/tests/integration/components/decorated-html-test.gjsindex d5e4011d464..247e1884d08 100644--- a/app/assets/javascripts/discourse/tests/integration/components/decorated-html-test.gjs+++ b/app/assets/javascripts/discourse/tests/integration/components/decorated-html-test.gjs@@ -54,7 +54,7 @@ module("Integration | Component | <DecoratedHtml />", function (hooks) {assert.dom("#render-glimmer").hasText("Hello from Glimmer Component");});- test("can decorate content with renderGlimmer using a curried componet", async function (assert) {+ test("can decorate content with renderGlimmer using a curried component", async function (assert) {const state = new (class {@tracked html = htmlSafe("<h1>Initial</h1>");})();diff --git a/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/code-block-test.js b/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/code-block-test.jsindex 866953eac48..c8748b8af0a 100644--- a/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/code-block-test.js+++ b/app/assets/javascripts/discourse/tests/integration/components/prosemirror-editor/code-block-test.js@@ -22,7 +22,7 @@ module()}</pre>`,"```plaintext\nconsole.log('Hello, world!');\n```",],- "basic code block without a lanuage": [+ "basic code block without a language": ["```\nconsole.log('Hello, world!');\n```",`<pre><code>console.log('Hello, world!');</code>${select()}</pre>`,"```\nconsole.log('Hello, world!');\n```",diff --git a/plugins/discourse-ai/assets/javascripts/discourse/connectors/composer-fields/persona-llm-selector.gjs b/plugins/discourse-ai/assets/javascripts/discourse/connectors/composer-fields/persona-llm-selector.gjsindex 2d9cc6bc4b5..69645f6f5b2 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/connectors/composer-fields/persona-llm-selector.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/connectors/composer-fields/persona-llm-selector.gjs@@ -9,11 +9,11 @@ function isBotMessage(composer, currentUser) {composer.targetRecipients &¤tUser.ai_enabled_chat_bots) {- const reciepients = composer.targetRecipients.split(",");+ const recipients = composer.targetRecipients.split(",");return currentUser.ai_enabled_chat_bots.filter((bot) => bot.username)- .any((bot) => reciepients.any((username) => username === bot.username));+ .any((bot) => recipients.any((username) => username === bot.username));}return false;}diff --git a/plugins/discourse-ai/lib/automation/llm_triage.rb b/plugins/discourse-ai/lib/automation/llm_triage.rbindex 529ed09a1d7..1dd792d30fc 100644--- a/plugins/discourse-ai/lib/automation/llm_triage.rb+++ b/plugins/discourse-ai/lib/automation/llm_triage.rb@@ -173,7 +173,7 @@ module DiscourseAi)# We cannot do this through the PostActionCreator because hiding a post is reserved for auto action flags.- # Those flags are off_topic, inappropiate, and spam. We want a more generic type for triage, so none of those+ # Those flags are off_topic, inappropriate, and spam. We want a more generic type for triage, so none of those# fit here.if flag_type == :review_hidepost.hide!(PostActionType.types[:notify_moderators])diff --git a/plugins/discourse-calendar/app/models/discourse_post_event/event.rb b/plugins/discourse-calendar/app/models/discourse_post_event/event.rbindex 25f5a8180ab..703b5219e05 100644--- a/plugins/discourse-calendar/app/models/discourse_post_event/event.rb+++ b/plugins/discourse-calendar/app/models/discourse_post_event/event.rb@@ -198,7 +198,7 @@ module DiscoursePostEventendresult = self.invitees.insert_all!(attrs)- # batch event does not call calleback+ # batch event does not call callbackChatChannelSync.sync(self) if chat_enabled?resultdiff --git a/plugins/discourse-lazy-videos/lib/discourse_lazy_videos/lazy_vimeo.rb b/plugins/discourse-lazy-videos/lib/discourse_lazy_videos/lazy_vimeo.rbindex dfa6152f9ed..795dfb3e47a 100644--- a/plugins/discourse-lazy-videos/lib/discourse_lazy_videos/lazy_vimeo.rb+++ b/plugins/discourse-lazy-videos/lib/discourse_lazy_videos/lazy_vimeo.rb@@ -11,7 +11,7 @@ class Onebox::Engine::VimeoOneboxfull_video_id = oembed_data[:uri].sub("/videos/", "").sub(":", "/")# This is used to discern public and private video- # Unlisted videos have an adidtional alphanumeric ID in their URI.+ # Unlisted videos have an additional alphanumeric ID in their URI.if !oembed_data[:uri].match?(%r{videos/\d+:.+})iframe_id = full_video_idelsediff --git a/plugins/discourse-microsoft-auth/lib/microsoft_auth_revoker.rb b/plugins/discourse-microsoft-auth/lib/microsoft_auth_revoker.rbindex d17ff693ede..7782a0d5e50 100644--- a/plugins/discourse-microsoft-auth/lib/microsoft_auth_revoker.rb+++ b/plugins/discourse-microsoft-auth/lib/microsoft_auth_revoker.rb@@ -2,7 +2,7 @@class MicrosoftAuthRevokerdef self.revoke- # Deactive users using microsoft as an authentication provider+ # Deactivate users using microsoft as an authentication providerDB.exec <<~SQLUPDATE users SET active = falseWHERE users.id IN (#{microsoft_user_associated_accounts_sql})diff --git a/plugins/discourse-reactions/spec/requests/custom_reactions_controller_spec.rb b/plugins/discourse-reactions/spec/requests/custom_reactions_controller_spec.rbindex 90b19188471..dc19830bde3 100644--- a/plugins/discourse-reactions/spec/requests/custom_reactions_controller_spec.rb+++ b/plugins/discourse-reactions/spec/requests/custom_reactions_controller_spec.rb@@ -583,7 +583,7 @@ describe DiscourseReactions::CustomReactionsController doenddescribe "reaction notifications" do- it "calls ReactinNotification service" do+ it "calls ReactingNotification service" dosign_in(user_1)DiscourseReactions::ReactionNotification.any_instance.expects(:create).onceDiscourseReactions::ReactionNotification.any_instance.expects(:delete).oncediff --git a/plugins/poll/lib/poll.rb b/plugins/poll/lib/poll.rbindex 691d8aca5df..724a4ece1b5 100644--- a/plugins/poll/lib/poll.rb+++ b/plugins/poll/lib/poll.rb@@ -353,7 +353,7 @@ class DiscoursePoll::Pollgrouped_selected_options[id] = { digest: option[:digest], html: option[:html], votes: 0 }end- # Now go back and update the vote counts. Using hashes so we dont have n^2+ # Now go back and update the vote counts. Using hashes so we don't have n^2votes.group_by { |v| v["poll_option_id"] }.each do |option_id, votes_for_option|