diff --git a/src/app/censures/pages/synchronize-lemmy/synchronize-lemmy.component.ts b/src/app/censures/pages/synchronize-lemmy/synchronize-lemmy.component.ts index 2715a07..9ce4c71 100644 --- a/src/app/censures/pages/synchronize-lemmy/synchronize-lemmy.component.ts +++ b/src/app/censures/pages/synchronize-lemmy/synchronize-lemmy.component.ts @@ -146,7 +146,7 @@ export class SynchronizeLemmyComponent implements OnInit { } private async getEndorsedCensureChain(instance: string): Promise { - return await toPromise(this.fediseerApi.getEndorsementsByInstance([instance]).pipe( + const result = await toPromise(this.fediseerApi.getEndorsementsByInstance([instance]).pipe( map(response => { if (this.apiResponseHelper.handleErrors([response])) { return []; @@ -155,6 +155,10 @@ export class SynchronizeLemmyComponent implements OnInit { return response.successResponse!.instances.map(instance => instance.domain); }), )); + + result.push(instance); + + return result; } private async getCensuresByInstances(instances: string[]): Promise {