mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 05:35:11 +00:00
chore: fix some comments (#14394)
Signed-off-by: timesince <seekseat@icloud.com>
This commit is contained in:
parent
4d757865f4
commit
41936c16c4
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue