mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user