chore: fix some comments (#14394)

Signed-off-by: timesince <seekseat@icloud.com>
This commit is contained in:
timesince 2024-08-12 13:03:16 +08:00 committed by GitHub
parent 4d757865f4
commit 41936c16c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ export class NoteDeleteService {
this.deliverToConcerned(user, note, content); this.deliverToConcerned(user, note, content);
} }
// also deliever delete activity to cascaded notes // also deliver delete activity to cascaded notes
const federatedLocalCascadingNotes = (cascadingNotes).filter(note => !note.localOnly && note.userHost == null); // filter out local-only notes const federatedLocalCascadingNotes = (cascadingNotes).filter(note => !note.localOnly && note.userHost == null); // filter out local-only notes
for (const cascadingNote of federatedLocalCascadingNotes) { for (const cascadingNote of federatedLocalCascadingNotes) {
if (!cascadingNote.user) continue; if (!cascadingNote.user) continue;

View File

@ -11,7 +11,7 @@ describe('API', () => {
expectType<Misskey.entities.MetaResponse>(res); expectType<Misskey.entities.MetaResponse>(res);
}); });
test('conditional respose type (meta)', async () => { test('conditional response type (meta)', async () => {
const cli = new Misskey.api.APIClient({ const cli = new Misskey.api.APIClient({
origin: 'https://misskey.test', origin: 'https://misskey.test',
credential: 'TOKEN' credential: 'TOKEN'
@ -30,7 +30,7 @@ describe('API', () => {
expectType<Misskey.entities.MetaResponse>(res4); expectType<Misskey.entities.MetaResponse>(res4);
}); });
test('conditional respose type (users/show)', async () => { test('conditional response type (users/show)', async () => {
const cli = new Misskey.api.APIClient({ const cli = new Misskey.api.APIClient({
origin: 'https://misskey.test', origin: 'https://misskey.test',
credential: 'TOKEN' credential: 'TOKEN'