Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typos: Fix typos caught by mwic.
Anders Kaseorgb545abe1e214
diff --git a/api_docs/construct-narrow.md b/api_docs/construct-narrow.mdindex 3cca76f022e..49b6effe154 100644--- a/api_docs/construct-narrow.md+++ b/api_docs/construct-narrow.md@@ -2,7 +2,7 @@A **narrow** is a set of filters for Zulip messages, that can be basedon many different factors (like sender, channel, topic, search-keywords, etc.). Narrows are used in various places in the the Zulip+keywords, etc.). Narrows are used in various places in the ZulipAPI (most importantly, in the API for fetching messages).It is simplest to explain the algorithm for encoding a search as adiff --git a/api_docs/outgoing-webhooks.md b/api_docs/outgoing-webhooks.mdindex 85aae5f0c5f..70e5171f6df 100644--- a/api_docs/outgoing-webhooks.md+++ b/api_docs/outgoing-webhooks.md@@ -2,7 +2,7 @@Outgoing webhooks allow you to build or set up Zulip integrationswhich are notified when certain types of messages are sent in-Zulip. When one of those events is triggered, we'll send a HTTP POST+Zulip. When one of those events is triggered, we'll send an HTTP POSTpayload to the webhook's configured URL. Webhooks can be used topower a wide range of Zulip integrations. For example, the[Zulip Botserver][zulip-botserver] is built on top of this API.diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex 2fa2d4d4ef2..57709ebc4d9 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -1445,7 +1445,7 @@ class BillingSession(ABC):# invoice for the 12th month is processed.if current_plan.end_date != self.get_next_billing_cycle(current_plan):raise SupportRequestError(- f"New plan for {self.billing_entity_display_name} can not be scheduled until all the invoices of the current plan are processed."+ f"New plan for {self.billing_entity_display_name} cannot be scheduled until all the invoices of the current plan are processed.")fixed_price_plan_params["billing_cycle_anchor"] = current_plan.end_datefixed_price_plan_params["end_date"] = add_months(diff --git a/corporate/models.py b/corporate/models.pyindex 62568628355..2de314b70ce 100644--- a/corporate/models.py+++ b/corporate/models.py@@ -525,7 +525,7 @@ class LicenseLedger(models.Model):event_time = models.DateTimeField()- # The number of licenses ("seats") purchased by the the organization at the time of ledger+ # The number of licenses ("seats") purchased by the organization at the time of ledger# entry creation. Normally, to add a user the organization needs at least one spare license.# Once a license is purchased, it is valid till the end of the billing period, irrespective# of whether the license is used or not. So the value of licenses will never decrease fordiff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 96d17ff4048..dfc408403c0 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -7746,7 +7746,7 @@ class TestRemoteRealmBillingFlow(StripeTestCase, RemoteRealmBillingTestCase):)self.assert_in_success_response([- f"New plan for {billing_entity} can not be scheduled until all the invoices of the current plan are processed."+ f"New plan for {billing_entity} cannot be scheduled until all the invoices of the current plan are processed."],result,)diff --git a/docs/subsystems/schema-migrations.md b/docs/subsystems/schema-migrations.mdindex 6f20c976dcd..5352cbbf795 100644--- a/docs/subsystems/schema-migrations.md+++ b/docs/subsystems/schema-migrations.md@@ -33,7 +33,7 @@ migrations.- If your migrations were automatically generated using`manage.py makemigrations`, a good option is to just remove yourmigration and rerun the command after rebasing. Remember to- `git rebase` to do this in the the commit that changed `models/*.py`+ `git rebase` to do this in the commit that changed `models/*.py`if you have a multi-commit branch.- If you wrote code as part of preparing your migrations, or preferthis workflow, you can use run `./tools/renumber-migrations`,diff --git a/docs/tutorials/life-of-a-request.md b/docs/tutorials/life-of-a-request.mdindex 640a3e1d4e5..23abce64a39 100644--- a/docs/tutorials/life-of-a-request.md+++ b/docs/tutorials/life-of-a-request.md@@ -212,6 +212,6 @@ This will result in a JSON string:{"result": "success", "msg": "", "data": {"var_name1": "var_value1", "var_name2": "var_value2"}}```-with a HTTP 200 status and a `Content-Type` of 'application/json'.+with an HTTP 200 status and a `Content-Type` of 'application/json'.That's it!diff --git a/docs/tutorials/writing-views.md b/docs/tutorials/writing-views.mdindex c3bcd560560..335a77dd8ca 100644--- a/docs/tutorials/writing-views.md+++ b/docs/tutorials/writing-views.md@@ -74,7 +74,7 @@ def accounts_register(request: HttpRequest) -> HttpResponse:This decorator ensures that the request was a POST--here, we'rechecking that the registration submission page is requested with apost, and inside the function, we'll check the form data. If you-request this page with GET, you'll get a HTTP 405 METHOD NOT ALLOWED+request this page with GET, you'll get an HTTP 405 METHOD NOT ALLOWEDerror.`zulip_login_required`:diff --git a/scripts/lib/email-mirror-postfix b/scripts/lib/email-mirror-postfixindex 49a51db126d..3a1816cc57f 100755--- a/scripts/lib/email-mirror-postfix+++ b/scripts/lib/email-mirror-postfix@@ -68,7 +68,7 @@ parser.add_argument(dest="host",default="127.0.0.1",help="Destination server address for uploading email from email mirror. "- "Address must contain a HTTP protocol. Otherwise, default value is assumed "+ "Address must contain an HTTP protocol. Otherwise, default value is assumed ""based on the http_only setting.",)diff --git a/scripts/lib/upgrade-zulip b/scripts/lib/upgrade-zulipindex 4cf8d440569..03d4c6d05b2 100755--- a/scripts/lib/upgrade-zulip+++ b/scripts/lib/upgrade-zulip@@ -57,7 +57,7 @@ try:[unpack_zulip, archived_tarball_path], preexec_fn=su_to_zulip, text=True)- # Chdir to deploy_path and then run upgrade-zulip-stage-2 from the+ # chdir to deploy_path and then run upgrade-zulip-stage-2 from the# new version of Zulip (having the upgrade logic run from the new# version is much better for fixing bugs in the upgrade process).deploy_path = deploy_path.strip()diff --git a/scripts/setup/restore-backup b/scripts/setup/restore-backupindex ab051638203..6671dce8862 100755--- a/scripts/setup/restore-backup+++ b/scripts/setup/restore-backup@@ -88,7 +88,7 @@ def restore_backup(tarball_file: IO[bytes], keep_settings: bool, keep_zulipconf:tarball_file.seek(0, 0)run(["tar", "-C", tmp, *transform_args, "-xPz"], stdin=tarball_file)- # Now, extract the the database backup, destroy the old+ # Now, extract the database backup, destroy the old# database, and create a new, empty database.db = settings.DATABASES["default"]assert isinstance(db["NAME"], str)@@ -153,7 +153,7 @@ def restore_backup(tarball_file: IO[bytes], keep_settings: bool, keep_zulipconf:# file.run([os.path.join(settings.DEPLOY_ROOT, "scripts", "zulip-puppet-apply"), "-f"])- # Now, restore the the database backup using pg_restore. This+ # Now, restore the database backup using pg_restore. This# needs to run after zulip-puppet-apply to ensure full-text# search extensions are available and installed.os.setresuid(POSTGRES_PWENT.pw_uid, POSTGRES_PWENT.pw_uid, 0)diff --git a/web/e2e-tests/custom-profile.test.ts b/web/e2e-tests/custom-profile.test.tsindex e2cb6bc4375..fe16e16a808 100644--- a/web/e2e-tests/custom-profile.test.ts+++ b/web/e2e-tests/custom-profile.test.ts@@ -4,7 +4,7 @@ import type {Page} from "puppeteer";import * as common from "./lib/common";-// This will be the row of the the custom profile field we add.+// This will be the row of the custom profile field we add.const profile_field_row = "#admin_profile_fields_table tr:nth-last-child(1)";async function test_add_new_profile_field(page: Page): Promise<void> {diff --git a/web/src/message_list_view.js b/web/src/message_list_view.jsindex 79ea1c4985a..5aec6b6828f 100644--- a/web/src/message_list_view.js+++ b/web/src/message_list_view.js@@ -901,7 +901,7 @@ export class MessageListView {// The messages we are being asked to render are shared with between// all messages lists. To prevent having both list views overwriting- // each others' data we will make a new message object to add data to+ // each other's data we will make a new message object to add data to// for rendering.const message_containers = messages.map((message) => {if (message.starred) {diff --git a/web/src/rendered_markdown.ts b/web/src/rendered_markdown.tsindex 246c05ca303..af364d60950 100644--- a/web/src/rendered_markdown.ts+++ b/web/src/rendered_markdown.ts@@ -148,7 +148,7 @@ export const update_elements = ($content: JQuery): void => {//// In these cases, the best we can do is leave the// existing name in the existing mention pill- // HTML. Clicking on the pill will show the the+ // HTML. Clicking on the pill will show the// "Unknown user" popover.if (person === undefined) {people.add_inaccessible_user(user_id);diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.cssindex 4b83bc73431..b1a7961e2d3 100644--- a/web/styles/left_sidebar.css+++ b/web/styles/left_sidebar.css@@ -2,7 +2,7 @@content from the edge of the window */$far_left_gutter_size: 10px;/* This represents the space in the sidebar reserved for symbols like- the #; labels like the the stream name go to the right of this. */+ the #; labels like the stream name go to the right of this. */$left_col_size: 19px;/* The full topic indentation includes 4px of indent in addition tothe above (and another 5px of padding not measured here) */@@ -1030,7 +1030,7 @@ li.top_left_scheduled_messages {/*Hover does not work for touch-based devices like mobile phones.- Hence the the icons does not appear, making the user unaware of its+ Hence the icons does not appear, making the user unaware of itspresence on such devices. The following media property displays theicon by default for such behaviour.*/diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex fccd6f46b6c..e3ce72897b7 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -498,7 +498,7 @@.message_inline_image img,.message_inline_ref img {/* We use `scale-down` so that images smaller than the container are- neither scaled up up or cropped to fit. This preserves+ neither scaled up nor cropped to fit. This preservestheir aspect ratio, which is often helpful. */object-fit: scale-down;diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.cssindex 871483e5529..314d7766621 100644--- a/web/styles/right_sidebar.css+++ b/web/styles/right_sidebar.css@@ -89,7 +89,7 @@ $user_status_emoji_width: 24px;/*Hover does not work for touch-based devices like mobile phones.- Hence the the icons does not appear, making the user unaware of its+ Hence the icons does not appear, making the user unaware of itspresence on such devices. The following media property displays theicon by default for such behaviour.*/diff --git a/web/tests/buddy_list.test.js b/web/tests/buddy_list.test.jsindex c5dcfa9ade9..c22b1c90a00 100644--- a/web/tests/buddy_list.test.js+++ b/web/tests/buddy_list.test.js@@ -144,7 +144,7 @@ run_test("split list", ({override, override_rewire, mock_template}) => {assert.ok(appended_to_other_users);appended_to_other_users = false;- // a user matching the view, and an other user+ // a user matching the view, and another userclear_buddy_list(buddy_list);buddy_list_add_user_matching_view(alice.user_id, $alice_li);buddy_list_add_other_user(bob.user_id, $bob_li);diff --git a/zerver/actions/create_user.py b/zerver/actions/create_user.pyindex 6bb975f4fc7..ef6a1faf797 100644--- a/zerver/actions/create_user.py+++ b/zerver/actions/create_user.py@@ -176,7 +176,7 @@ def add_new_user_history(user_profile: UserProfile, streams: Iterable[Stream]) -Mark the very most recent messages as unread."""- # Find recipient ids for the the user's streams, limiting to just+ # Find recipient ids for the user's streams, limiting to just# those where we can access the streams' full history.## TODO: This will do database queries in a loop if many privatediff --git a/zerver/actions/presence.py b/zerver/actions/presence.pyindex 64f2f6c0c47..21817cb4270 100644--- a/zerver/actions/presence.py+++ b/zerver/actions/presence.py@@ -168,7 +168,7 @@ def do_update_user_presence(if force_send_update or (not user_profile.realm.presence_disabled and (created or became_online)):- # We do a the transaction.on_commit here, rather than inside+ # We do the transaction.on_commit here, rather than inside# send_presence_changed, to help keep presence transactions# brief; the active_user_ids call there is more expensive than# this whole function.diff --git a/zerver/actions/submessage.py b/zerver/actions/submessage.pyindex 4cb88a1f0b2..e8d704c1859 100644--- a/zerver/actions/submessage.py+++ b/zerver/actions/submessage.py@@ -20,7 +20,7 @@ def verify_submessage_sender() -> None:"""Even though our submessage architecture is geared towardcollaboration among all message readers, we still enforce- the the first person to attach a submessage to the message+ the first person to attach a submessage to the messagemust be the original sender of the message."""diff --git a/zerver/data_import/slack.py b/zerver/data_import/slack.pyindex 875b6cb97fa..b6545f8a567 100644--- a/zerver/data_import/slack.py+++ b/zerver/data_import/slack.py@@ -824,7 +824,7 @@ def get_messages_iterator(messages = []for message in get_data_file(message_dir):if message.get("user") == "U00":- # Skip messages involving the the "U00" user,+ # Skip messages involving the "U00" user,# which is apparently used in some channel rename# messages. It's likely just the result of some# bug in Slack's export system. Arguably we coulddiff --git a/zerver/lib/import_realm.py b/zerver/lib/import_realm.pyindex db9cb905919..57799ea7e6f 100644--- a/zerver/lib/import_realm.py+++ b/zerver/lib/import_realm.py@@ -408,7 +408,7 @@ def fix_message_rendered_content(# This generally happens with two possible causes:# * rendering Markdown throwing an uncaught exception# * rendering Markdown failing with the exception being- # caught in Markdown (which then returns None, causing the the+ # caught in Markdown (which then returns None, causing the# rendered_content assert above to fire).logging.warning("Error in Markdown rendering for message ID %s; continuing", message["id"]diff --git a/zerver/lib/scim.py b/zerver/lib/scim.pyindex 7b45fbe6eeb..affad22b2d4 100644--- a/zerver/lib/scim.py+++ b/zerver/lib/scim.py@@ -57,7 +57,7 @@ class ZulipSCIMUser(SCIMUser):# These attributes are custom to this class and will be# populated with values in handle_replace and similar methods- # in response to a request for the the corresponding+ # in response to a request for the corresponding# UserProfile fields to change. The .save() method inspects# these fields an executes the requested changes.self._email_new_value: Optional[str] = Nonediff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.pyindex 69b8fdf438d..3681cfafc36 100644--- a/zerver/lib/test_helpers.py+++ b/zerver/lib/test_helpers.py@@ -742,7 +742,7 @@ def ratelimit_rule(num_requests: int,domain: str = "api_by_user",) -> Iterator[None]:- """Temporarily add a rate-limiting rule to the ratelimiter"""+ """Temporarily add a rate-limiting rule to the rate limiter"""RateLimitedIPAddr("127.0.0.1", domain=domain).clear_history()domain_rules = rules.get(domain, []).copy()diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex d5dc527b5a8..09617a6c872 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -11351,7 +11351,7 @@ paths:per-channel notification settings.**Changes**: Prior to Zulip 5.0 (feature level 111), response- object included the `subscription_data` in the the+ object included the `subscription_data` in therequest. The endpoint now returns the more ergonomic[`ignored_parameters_unsupported`][ignored-parameters] array instead.@@ -20912,7 +20912,7 @@ components:- timestampdescription: |An array of objects, with each object documenting the- changes in a previous edit made to the the message,+ changes in a previous edit made to the message,ordered chronologically from most recent to least recentedit.diff --git a/zerver/tests/test_openapi.py b/zerver/tests/test_openapi.pyindex 96ed4d1dfff..b4603f2ad46 100644--- a/zerver/tests/test_openapi.py+++ b/zerver/tests/test_openapi.py@@ -156,7 +156,7 @@ class OpenAPIToolsTest(ZulipTestCase):# pass, Test 2 has a 'deep' extraneous key and Test 3 has a# 'deep' opaque object. Also the parameters are a heterogeneous# mix of arrays and objects to verify that our descent logic- # correctly gets to the the deeply nested objects.+ # correctly gets to the deeply nested objects.test_filename = os.path.join(os.path.dirname(OPENAPI_SPEC_PATH), "testing.yaml")with open(test_filename) as test_file:test_dict = yaml.safe_load(test_file)@@ -533,7 +533,7 @@ do not match the types declared in the implementation of {function.__name__}.\n"vname = defval.post_var_nameassert vname is not Noneif vname in json_params:- # Here we have two cases. If the the REQ type is+ # Here we have two cases. If the REQ type is# string then there is no point in comparing as# JSON can always be returned as string. Ideally,# we wouldn't use REQ for a JSON object without adiff --git a/zerver/webhooks/bitbucket3/doc.md b/zerver/webhooks/bitbucket3/doc.mdindex 168fab5611d..69be93aaedf 100644--- a/zerver/webhooks/bitbucket3/doc.md+++ b/zerver/webhooks/bitbucket3/doc.md@@ -1,5 +1,5 @@Zulip supports both Git and Mercurial notifications from-Bitbucket. This integration is for the the new-style Bitbucket+Bitbucket. This integration is for the new-style Bitbucketwebhooks used by Bitbucket Server.For the old-style Bitbucket webhooks used by Bitbucket Enterprise,diff --git a/zerver/webhooks/semaphore/doc.md b/zerver/webhooks/semaphore/doc.mdindex 11c4c37f8d9..8b984923432 100644--- a/zerver/webhooks/semaphore/doc.md+++ b/zerver/webhooks/semaphore/doc.md@@ -7,7 +7,7 @@ Get Zulip notifications for your Semaphore builds!1. {!generate-integration-url.md!}1. In Semaphore 2.0, under **Configuration** select **Notifications**. Click on- **Create New Notification**. Add the the URL constructed above to the Webhook+ **Create New Notification**. Add the URL constructed above to the Webhook**Endpoint** field.If you are using Semaphore Classic, in your Semaphore project, go todiff --git a/zilencer/views.py b/zilencer/views.pyindex 525807cc4a2..d2789ef59f3 100644--- a/zilencer/views.py+++ b/zilencer/views.py@@ -145,7 +145,7 @@ def register_remote_server(AfterValidator(lambda s: check_string_fixed_length(s, RemoteZulipServer.API_KEY_LENGTH)),] = None,) -> HttpResponse:- # StringConstraints validated the the field lengths, but we still need to+ # StringConstraints validated the field lengths, but we still need to# validate the format of these fields.try:# TODO: Ideally we'd not abuse the URL validator this way