mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
DEV: Correct spelling mistakes in comments
This commit is contained in:
parent
afb2b4c6b9
commit
13d40ead97
|
@ -1,6 +1,6 @@
|
|||
import Component from "@ember/component";
|
||||
export default Component.extend({
|
||||
tagName: "h3",
|
||||
// icon name defined here so it can be easily overriden in theme components
|
||||
// icon name defined here so it can be easily overridden in theme components
|
||||
lockIcon: "lock",
|
||||
});
|
||||
|
|
|
@ -757,7 +757,7 @@ class PluginApi {
|
|||
*
|
||||
* Example:
|
||||
*
|
||||
* addPostClassesCallback((atts) => {if (atts.post_number == 1) return ["first"];})
|
||||
* addPostClassesCallback((attrs) => {if (attrs.post_number == 1) return ["first"];})
|
||||
**/
|
||||
addPostClassesCallback(callback) {
|
||||
addPostClassesCallback(callback);
|
||||
|
|
|
@ -33,7 +33,7 @@ export function registerTopicFooterButton(button) {
|
|||
ariaLabel: null,
|
||||
translatedAriaLabel: null,
|
||||
|
||||
// is this button disaplyed in the mobile dropdown or as an inline button ?
|
||||
// is this button displayed in the mobile dropdown or as an inline button ?
|
||||
dropdown: false,
|
||||
|
||||
// css class appended to the button
|
||||
|
|
|
@ -229,7 +229,7 @@ const User = RestModel.extend({
|
|||
const allowedUsers = details && details.get("allowed_users");
|
||||
const groups = details && details.get("allowed_groups");
|
||||
|
||||
// directly targetted so go to inbox
|
||||
// directly targeted so go to inbox
|
||||
if (!groups || (allowedUsers && allowedUsers.findBy("id", userId))) {
|
||||
return userPath(`${username}/messages`);
|
||||
} else {
|
||||
|
|
|
@ -26,7 +26,7 @@ class RejectionMailer < ActionMailer::Base
|
|||
# Send an email rejection message.
|
||||
#
|
||||
# template - i18n key under system_messages
|
||||
# message_from - Who to send the rejection messsage to
|
||||
# message_from - Who to send the rejection message to
|
||||
# template_args - arguments to pass to i18n for interpolation into the message
|
||||
# Certain keys are disallowed in template_args to avoid confusing the
|
||||
# BuildEmailHelper. You can see the list in DISALLOWED_TEMPLATE_ARGS.
|
||||
|
|
|
@ -415,7 +415,7 @@ class Topic < ActiveRecord::Base
|
|||
subtype == TopicSubtype.moderator_warning
|
||||
end
|
||||
|
||||
# all users (in groups or directly targetted) that are going to get the pm
|
||||
# all users (in groups or directly targeted) that are going to get the pm
|
||||
def all_allowed_users
|
||||
moderators_sql = " UNION #{User.moderators.to_sql}" if private_message? && (has_flags? || is_official_warning?)
|
||||
User.from("(#{allowed_users.to_sql} UNION #{allowed_group_users.to_sql}#{moderators_sql}) as users")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# we want MesageBus to be close to the front
|
||||
# we want MessageBus to be close to the front
|
||||
# this is important cause the vast majority of web requests go to it
|
||||
# this allows us to avoid full middleware crawls each time
|
||||
#
|
||||
|
|
|
@ -52,7 +52,7 @@ class Auth::Authenticator
|
|||
false
|
||||
end
|
||||
|
||||
# can exising discourse users connect this provider to their accounts
|
||||
# can existing discourse users connect this provider to their accounts
|
||||
def can_connect_existing_user?
|
||||
false
|
||||
end
|
||||
|
|
|
@ -19,7 +19,7 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
|
|||
info["email"] || info["nickname"] || info["name"]
|
||||
end
|
||||
|
||||
# These three methods are designed to be overriden by child classes
|
||||
# These three methods are designed to be overridden by child classes
|
||||
def match_by_email
|
||||
true
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ def process_popmail(popmail)
|
|||
end
|
||||
end
|
||||
|
||||
desc "use this task to import a mailbox into Disourse"
|
||||
desc "use this task to import a mailbox into Discourse"
|
||||
task "emails:import" => :environment do
|
||||
begin
|
||||
unless SiteSetting.email_in
|
||||
|
@ -72,7 +72,7 @@ task 'emails:test', [:email] => [:environment] do |_, args|
|
|||
Sending mail with Gmail is a violation of their terms of service.
|
||||
|
||||
Sending with G Suite might work, but it is not recommended. For information see:
|
||||
https://meta.discourse.org/t/dscourse-aws-ec2-g-suite-troubleshoting/62931?u=pfaffman
|
||||
https://meta.discourse.org/t/discourse-aws-ec2-g-suite-troubleshooting/62931?u=pfaffman
|
||||
|
||||
========================= CONTINUING TEST ============================
|
||||
STR
|
||||
|
|
Loading…
Reference in New Issue
Block a user