From c7f98e381c950bc46e10420764e4c56f064136b5 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 22 Aug 2023 19:52:11 -0700 Subject: [PATCH] fix: :pencil2: "can not" -> "cannot" --- CHANGELOG.md | 8 ++++---- locales/en-US.yml | 2 +- .../src/server/api/endpoints/drive/folders/update.ts | 2 +- packages/backend/src/server/api/endpoints/i/pin.ts | 2 +- .../src/server/api/endpoints/messaging/messages.ts | 2 +- .../src/server/api/endpoints/messaging/messages/create.ts | 4 ++-- packages/backend/src/server/api/endpoints/notes/create.ts | 4 ++-- packages/backend/src/server/api/endpoints/notes/edit.ts | 6 +++--- .../src/server/api/endpoints/users/groups/leave.ts | 2 +- .../backend/src/server/api/endpoints/users/groups/pull.ts | 2 +- packages/backend/src/services/i/pin.ts | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a84c1036e..5fe0aef118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8900,7 +8900,7 @@ Resolve #7540 * truncate user information if it is too long Some AP software allows for user names or summaries to be very long. -Misskey can not handle this and the profile page can not be opened and +Misskey cannot handle this and the profile page cannot be opened and no activities from such users can be seen. Instead, the user name and summary are cut off after the maximum length @@ -9902,7 +9902,7 @@ This duplicated processing can be avoided by querying the database directly. Misskey will only use ActivityPub follow requests for users that are local and are requesting to follow a remote user. This check is to ensure that -this endpoint can not be used by other services or instances. +this endpoint cannot be used by other services or instances. * fix: missing import @@ -14921,7 +14921,7 @@ Defaults for `local` and `withFiles` are based on the behaviour of the endpoint. * fix: define required fields -- `notes/create`: the default for `text` has been removed because ajv can not handle +- `notes/create`: the default for `text` has been removed because ajv cannot handle `default` inside of `anyOf`, see https://ajv.js.org/guide/modifying-data.html#assigning-defaults and the default value cannot be `null` if text is `nullable: false` in the `anyOf` @@ -15551,7 +15551,7 @@ unnecessarily loaded. * remove duplicate null check The variable is checked for null in the lines above and the function -returns if so. Therefore, it can not be null at this point. +returns if so. Therefore, it cannot be null at this point. * simplify `getJsonSchema` diff --git a/locales/en-US.yml b/locales/en-US.yml index 2658327907..f4ff6fac91 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -341,7 +341,7 @@ inputNewDescription: "Enter new description" inputNewFolderName: "Enter a new folder name" circularReferenceFolder: "The destination folder is a subfolder of the folder you wish to move." -hasChildFilesOrFolders: "Since this folder is not empty, it can not be deleted." +hasChildFilesOrFolders: "Since this folder is not empty, it cannot be deleted." copyUrl: "Copy URL" rename: "Rename" avatar: "Avatar" diff --git a/packages/backend/src/server/api/endpoints/drive/folders/update.ts b/packages/backend/src/server/api/endpoints/drive/folders/update.ts index 929a69bdec..13673e9f2e 100644 --- a/packages/backend/src/server/api/endpoints/drive/folders/update.ts +++ b/packages/backend/src/server/api/endpoints/drive/folders/update.ts @@ -24,7 +24,7 @@ export const meta = { }, recursiveNesting: { - message: "It can not be structured like nesting folders recursively.", + message: "It cannot be structured like nesting folders recursively.", code: "NO_SUCH_PARENT_FOLDER", id: "ce104e3a-faaf-49d5-b459-10ff0cbbcaa1", }, diff --git a/packages/backend/src/server/api/endpoints/i/pin.ts b/packages/backend/src/server/api/endpoints/i/pin.ts index 40aa579184..7520705265 100644 --- a/packages/backend/src/server/api/endpoints/i/pin.ts +++ b/packages/backend/src/server/api/endpoints/i/pin.ts @@ -18,7 +18,7 @@ export const meta = { }, pinLimitExceeded: { - message: "You can not pin notes any more.", + message: "You cannot pin notes any more.", code: "PIN_LIMIT_EXCEEDED", id: "72dab508-c64d-498f-8740-a8eec1ba385a", }, diff --git a/packages/backend/src/server/api/endpoints/messaging/messages.ts b/packages/backend/src/server/api/endpoints/messaging/messages.ts index 4b5440383c..17f626b69e 100644 --- a/packages/backend/src/server/api/endpoints/messaging/messages.ts +++ b/packages/backend/src/server/api/endpoints/messaging/messages.ts @@ -48,7 +48,7 @@ export const meta = { }, groupAccessDenied: { - message: "You can not read messages of groups that you have not joined.", + message: "You cannot read messages of groups that you have not joined.", code: "GROUP_ACCESS_DENIED", id: "a053a8dd-a491-4718-8f87-50775aad9284", }, diff --git a/packages/backend/src/server/api/endpoints/messaging/messages/create.ts b/packages/backend/src/server/api/endpoints/messaging/messages/create.ts index ed9ae16df0..4ffbb0699f 100644 --- a/packages/backend/src/server/api/endpoints/messaging/messages/create.ts +++ b/packages/backend/src/server/api/endpoints/messaging/messages/create.ts @@ -28,7 +28,7 @@ export const meta = { errors: { recipientIsYourself: { - message: "You can not send a message to yourself.", + message: "You cannot send a message to yourself.", code: "RECIPIENT_IS_YOURSELF", id: "17e2ba79-e22a-4cbc-bf91-d327643f4a7e", }, @@ -46,7 +46,7 @@ export const meta = { }, groupAccessDenied: { - message: "You can not send messages to groups that you have not joined.", + message: "You cannot send messages to groups that you have not joined.", code: "GROUP_ACCESS_DENIED", id: "d96b3cca-5ad1-438b-ad8b-02f931308fbd", }, diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index e15221046f..542f617b30 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -52,7 +52,7 @@ export const meta = { }, cannotReRenote: { - message: "You can not Renote a pure Renote.", + message: "You cannot Renote a pure Renote.", code: "CANNOT_RENOTE_TO_A_PURE_RENOTE", id: "fd4cc33e-2a37-48dd-99cc-9b806eb2031a", }, @@ -64,7 +64,7 @@ export const meta = { }, cannotReplyToPureRenote: { - message: "You can not reply to a pure Renote.", + message: "You cannot reply to a pure Renote.", code: "CANNOT_REPLY_TO_A_PURE_RENOTE", id: "3ac74a84-8fd5-4bb0-870f-01804f82ce15", }, diff --git a/packages/backend/src/server/api/endpoints/notes/edit.ts b/packages/backend/src/server/api/endpoints/notes/edit.ts index 70c5ceffb4..a0b04f0c45 100644 --- a/packages/backend/src/server/api/endpoints/notes/edit.ts +++ b/packages/backend/src/server/api/endpoints/notes/edit.ts @@ -70,7 +70,7 @@ export const meta = { }, cannotReRenote: { - message: "You can not Renote a pure Renote.", + message: "You cannot Renote a pure Renote.", code: "CANNOT_RENOTE_TO_A_PURE_RENOTE", id: "fd4cc33e-2a37-48dd-99cc-9b806eb2031a", }, @@ -82,7 +82,7 @@ export const meta = { }, cannotReplyToPureRenote: { - message: "You can not reply to a pure Renote.", + message: "You cannot reply to a pure Renote.", code: "CANNOT_REPLY_TO_A_PURE_RENOTE", id: "3ac74a84-8fd5-4bb0-870f-01804f82ce15", }, @@ -130,7 +130,7 @@ export const meta = { }, cannotPrivateRenote: { - message: "You can not perform a private renote.", + message: "You cannot perform a private renote.", code: "CANNOT_PRIVATE_RENOTE", id: "19a50f1c-84fa-4e33-81d3-17834ccc0ad8", }, diff --git a/packages/backend/src/server/api/endpoints/users/groups/leave.ts b/packages/backend/src/server/api/endpoints/users/groups/leave.ts index d963b1826e..fac0a47fc5 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/leave.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/leave.ts @@ -10,7 +10,7 @@ export const meta = { kind: "write:user-groups", description: - "Leave a group. The owner of a group can not leave. They must transfer ownership or delete the group instead.", + "Leave a group. The owner of a group cannot leave. They must transfer ownership or delete the group instead.", errors: { noSuchGroup: { diff --git a/packages/backend/src/server/api/endpoints/users/groups/pull.ts b/packages/backend/src/server/api/endpoints/users/groups/pull.ts index 1f79a2d2b7..ce294b8c86 100644 --- a/packages/backend/src/server/api/endpoints/users/groups/pull.ts +++ b/packages/backend/src/server/api/endpoints/users/groups/pull.ts @@ -11,7 +11,7 @@ export const meta = { kind: "write:user-groups", description: - "Removes a specified user from a group. The owner can not be removed.", + "Removes a specified user from a group. The owner cannot be removed.", errors: { noSuchGroup: { diff --git a/packages/backend/src/services/i/pin.ts b/packages/backend/src/services/i/pin.ts index 97045a9fa9..ee13ce6fed 100644 --- a/packages/backend/src/services/i/pin.ts +++ b/packages/backend/src/services/i/pin.ts @@ -38,7 +38,7 @@ export async function addPinned( if (pinings.length >= 5) { throw new IdentifiableError( "15a018eb-58e5-4da1-93be-330fcc5e4e1a", - "You can not pin notes any more.", + "You cannot pin notes any more.", ); }