feat: support for FEP fb2a (new-style account metadata)

This commit is contained in:
Julian Lam
2024-11-26 14:18:42 -05:00
parent efa0cac380
commit 549a6b7dff
2 changed files with 43 additions and 4 deletions

View File

@@ -42,6 +42,9 @@ ActivityPub._constants = Object.freeze({
acceptableActorTypes: new Set(['Application', 'Group', 'Organization', 'Person', 'Service']),
requiredActorProps: ['inbox', 'outbox'],
acceptedProtocols: ['https', ...(process.env.CI === 'true' ? ['http'] : [])],
acceptable: {
customFields: new Set(['PropertyValue', 'Link', 'Note']),
},
});
ActivityPub._cache = requestCache;