feat: support remote "Video" type objects in note assertion, #13120

- handle array attributedTo (plus per-object actor assertion instead of batched)
- explicit "Video" type handling to automatically save URL as post attachment
- handle array url property
This commit is contained in:
Julian Lam
2025-02-26 13:55:39 -05:00
parent bad0a4c2d2
commit 95f2c4edb5
3 changed files with 44 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ ActivityPub._constants = Object.freeze({
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
],
acceptedPostTypes: [
'Note', 'Page', 'Article', 'Question',
'Note', 'Page', 'Article', 'Question', 'Video',
],
acceptableActorTypes: new Set(['Application', 'Group', 'Organization', 'Person', 'Service']),
requiredActorProps: ['inbox', 'outbox'],