peertube-theme-nctv-dark/peertube-plugin-auto-mute
2020-05-07 16:27:56 +02:00
..
tests
main.js Fix auto mute scheduler 2020-05-07 16:27:56 +02:00
package-lock.json
package.json Fix auto mute scheduler 2020-05-07 16:27:56 +02:00
README.md Fix auto mute readme 2020-05-07 15:52:10 +02:00

Auto mute plugin for PeerTube

Auto mute accounts or instances based on public blocklists.

Format

This plugins expect the following JSON format from public blocklists:

{
  data: {
    value: string
    action?: 'add' | 'remove' // Default is 'add'
  }[]
}

For example:

{
  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.

For example, to revert peertube.cpy.re from the blocklist, update the JSON:

{
  data: [
    {
      value: 'peertube.cpy.re',
      action: 'remove'
    },
    {
      value: 'root@peertube.cpy.re'
    }
  ]
}