Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Prefer using req instead of body

Chocobozzz7ce6574989be
diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md
index 193ddea8eb..44403a76c7 100644
--- a/support/doc/plugins/guide.md
+++ b/support/doc/plugins/guide.md
@@ -793,10 +793,10 @@ async function register ({
// Store data associated to this video
registerHook({
target: 'action:api.video.updated',
- handler: ({ video, body }) => {
- if (!body.pluginData) return
+ handler: ({ video, req }) => {
+ if (!req.body.pluginData) return
- const value = body.pluginData[fieldName]
+ const value = req.body.pluginData[fieldName]
if (!value) return
storageManager.storeData(fieldName + '-' + video.id, value)