mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Also check instances to skip
This commit is contained in:
parent
37c4ef56d7
commit
63b179c178
@ -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 New Issue
Block a user