From b3e01fcd6a01049c43d3b8e70b89a3d9a3b11d0a Mon Sep 17 00:00:00 2001 From: Francis Dinh Date: Thu, 1 Dec 2022 02:46:51 -0500 Subject: [PATCH] use correct types for sameOrSubdomainOf --- packages/backend/src/misc/skipped-instances.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/skipped-instances.ts b/packages/backend/src/misc/skipped-instances.ts index 3f09720ca..de4ee09b5 100644 --- a/packages/backend/src/misc/skipped-instances.ts +++ b/packages/backend/src/misc/skipped-instances.ts @@ -13,7 +13,7 @@ const deadThreshold = 7 * DAY; * @param blockedHost punycoded instance host that is blocked * @returns whether host and blockedHost is the same or if host is a subdomain of blockedHost */ -function sameOrSubdomainOf(host: string, blockedHost: string): boolean { +function sameOrSubdomainOf(host: Instance['host'], blockedHost: Instance['host']): boolean { return host === blockedHost || host.endsWith('.' + blockedHost); }