mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
Also check instances to skip
This commit is contained in:
parent
37c4ef56d7
commit
63b179c178
1 changed files with 8 additions and 1 deletions
|
@ -126,7 +126,14 @@ export default class DeliverManager {
|
|||
const instancesToSkip = await skippedInstances(
|
||||
// get (unique) list of hosts
|
||||
Array.from(
|
||||
new Set(Array.from(inboxes).map((inbox) => new URL(inbox).host)),
|
||||
new Set(Array.from(inboxes).map((inbox) => {
|
||||
try {
|
||||
return new URL(inbox).host;
|
||||
} catch (e) {
|
||||
apLogger.error(`Invalid inbox URL: ${inbox}`);
|
||||
return null;
|
||||
}
|
||||
} ).filter((host) => host != null) as string[]),
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue