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

@@ -137,6 +137,7 @@ middleware.resolveObjects = async function (req, res, next) {
next();
};
// todo: deprecate... this should be handled in actor and note assertion methods instead, or perhaps via helper fn
middleware.normalize = async function (req, res, next) {
// Normalizes the received data structure
const { body } = req;