Skip to content

Commit

Permalink
Fix: Synchronization in endorsed mode includes current instance (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage authored Sep 12, 2023
1 parent 02e4fb1 commit 1c218ec
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class SynchronizeLemmyComponent implements OnInit {
}

private async getEndorsedCensureChain(instance: string): Promise<string[]> {
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 [];
Expand All @@ -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<string[] | null> {
Expand Down

0 comments on commit 1c218ec

Please sign in to comment.