From 01af40a55f538170162927bd48f1475ec653897d Mon Sep 17 00:00:00 2001 From: soonsouth Date: Sat, 16 Mar 2024 00:01:14 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: soonsouth --- CHANGELOG.md | 4 ++-- packages/tests/src/api/check-params/video-channel-syncs.ts | 2 +- server/core/lib/uploadx.ts | 4 ++-- server/core/lib/video-pre-import.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d119d3d73..c401b9287 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -363,7 +363,7 @@ We have many important notes in this release. We know it's a pain for sysadmin, * :tada: Implement user registration approval (https://docs.joinpeertube.org/admin/managing-users#registration-approval) [#5544](https://github.com/Chocobozzz/PeerTube/pull/5544) * If enabled, the user has to fill a *Registration reason* input - * Moderators have to to accept/reject the registration with a *Moderation response* that will be sent by email to the user + * Moderators have to accept/reject the registration with a *Moderation response* that will be sent by email to the user * If the registration is accepted, the user and its channel are automatically created * Add "back to live" button in player * The *Live* button is red when the player is synced with the live @@ -1915,7 +1915,7 @@ A new endpoint to report videos will be created in PeerTube 2.4 and will also al ### Features - * :tada: Add global search support (has to be explicitely enabled by admins) + * :tada: Add global search support (has to be explicitly enabled by admins) * :tada: Add ability for admins to display a banner on their instance * :tada: Support Vietnamese and Kabyle languages. Also re-establish Occitan language locale despite lack of support in Angular * Federation: diff --git a/packages/tests/src/api/check-params/video-channel-syncs.ts b/packages/tests/src/api/check-params/video-channel-syncs.ts index d95f3319a..edb0ab13f 100644 --- a/packages/tests/src/api/check-params/video-channel-syncs.ts +++ b/packages/tests/src/api/check-params/video-channel-syncs.ts @@ -139,7 +139,7 @@ describe('Test video channel sync API validator', () => { }) }) - it('Should fail with a channelId refering nothing', async function () { + it('Should fail with a channelId referring nothing', async function () { const attributes: VideoChannelSyncCreate = { ...baseCorrectParams, videoChannelId: 42 diff --git a/server/core/lib/uploadx.ts b/server/core/lib/uploadx.ts index 7ecccafb4..9f74207e4 100644 --- a/server/core/lib/uploadx.ts +++ b/server/core/lib/uploadx.ts @@ -75,13 +75,13 @@ export function setupUploadResumableRoutes (options: { ...uploadInitBeforeMiddlewares, resumableInitValidator, ...uploadInitAfterMiddlewares, - (req, res) => uploadx.upload(req, res) // Prevent next() call, explicitely tell to uploadx it's the end + (req, res) => uploadx.upload(req, res) // Prevent next() call, explicitly tell to uploadx it's the end ) router.delete(routePath, authenticate, ...uploadDeleteMiddlewares, - (req, res) => uploadx.upload(req, res) // Prevent next() call, explicitely tell to uploadx it's the end + (req, res) => uploadx.upload(req, res) // Prevent next() call, explicitly tell to uploadx it's the end ) router.put(routePath, diff --git a/server/core/lib/video-pre-import.ts b/server/core/lib/video-pre-import.ts index d9a4c4421..484474f92 100644 --- a/server/core/lib/video-pre-import.ts +++ b/server/core/lib/video-pre-import.ts @@ -227,7 +227,7 @@ async function buildYoutubeDLImport (options: { }) await sequelizeTypescript.transaction(async transaction => { - // Priority to explicitely set description + // Priority to explicitly set description if (importDataOverride?.description) { const inserted = await replaceChaptersFromDescriptionIfNeeded({ newDescription: importDataOverride.description, video, transaction }) if (inserted) return