2020-05-07 13:50:46 +00:00
|
|
|
# Auto mute plugin for PeerTube
|
|
|
|
|
|
|
|
Auto mute accounts or instances based on public blocklists.
|
|
|
|
|
2020-05-07 14:30:07 +00:00
|
|
|
## Settings
|
|
|
|
|
|
|
|
![settings screen](https://lutim.cpy.re/qaFui9N1.png)
|
|
|
|
|
|
|
|
## Blocklist URL format
|
2020-05-07 13:50:46 +00:00
|
|
|
|
2020-05-07 14:31:08 +00:00
|
|
|
This plugin expects the following JSON format from public blocklists:
|
2020-05-07 13:50:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
data: {
|
|
|
|
value: string
|
|
|
|
action?: 'add' | 'remove' // Default is 'add'
|
|
|
|
}[]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
```
|
2020-05-07 13:52:10 +00:00
|
|
|
{
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
value: 'peertube.cpy.re'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'root@peertube.cpy.re'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2020-05-07 13:50:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
```
|
2020-05-07 13:52:10 +00:00
|
|
|
{
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
value: 'peertube.cpy.re',
|
|
|
|
action: 'remove'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'root@peertube.cpy.re'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|