refactor: acceptable types in context.js to index.js, allow searching for remote topis by topic url

This commit is contained in:
Julian Lam
2025-01-30 16:41:52 -05:00
parent 54bc54e176
commit d644c0f41c
3 changed files with 5 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ ActivityPub._constants = Object.freeze({
acceptedProtocols: ['https', ...(process.env.CI === 'true' ? ['http'] : [])],
acceptable: {
customFields: new Set(['PropertyValue', 'Link', 'Note']),
contextTypes: new Set(['Collection', 'CollectionPage', 'OrderedCollection', 'OrderedCollectionPage']),
},
});
ActivityPub._cache = requestCache;