fix: better logic for choosing webfinger lookups

This commit is contained in:
Opliko
2024-04-25 20:05:53 +02:00
parent dd71340af9
commit ed84eed8a9
3 changed files with 5 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ ActivityPub._constants = Object.freeze({
acceptedPostTypes: [
'Note', 'Page', 'Article', 'Question',
],
acceptedProtocols: ['https', ...(process.env.CI === 'true' ? ['http'] : [])],
});
ActivityPub._cache = requestCache;