From dbc6fc0d5fe4ade6141686686b9d8054a0e8b3f1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 May 2020 15:52:10 +0200 Subject: [PATCH] Fix auto mute readme --- peertube-plugin-auto-mute/README.md | 39 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/peertube-plugin-auto-mute/README.md b/peertube-plugin-auto-mute/README.md index dbcc838..8318ace 100644 --- a/peertube-plugin-auto-mute/README.md +++ b/peertube-plugin-auto-mute/README.md @@ -18,14 +18,16 @@ This plugins expect the following JSON format from public blocklists: For example: ``` -[ - { - value: 'peertube.cpy.re' - }, - { - value: 'root@peertube.cpy.re' - } -] +{ + data: [ + { + value: 'peertube.cpy.re' + }, + { + value: 'root@peertube.cpy.re' + } + ] +} ``` This plugin does not apply a diff, so if you want to remove an entity from the blocklist, add `action: 'remove'` to the object. @@ -33,12 +35,15 @@ This plugin does not apply a diff, so if you want to remove an entity from the b For example, to revert `peertube.cpy.re` from the blocklist, update the JSON: ``` -[ - { - value: 'peertube.cpy.re', - action: 'remove' - }, - { - value: 'root@peertube.cpy.re' - } -] +{ + data: [ + { + value: 'peertube.cpy.re', + action: 'remove' + }, + { + value: 'root@peertube.cpy.re' + } + ] +} +```