blob: 503ca741d10151adec10f51f79ee5fa54577af92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
// Policy config file
Digitigrade\PolicyManager::getInstance()->registerAll(
// loads blocked instance domains from blocked-instances.txt
new Digitigrade\Policy\BlockInstance(...explode("\n", file_get_contents(__DIR__ . '/blocked-instances.txt'))),
// provides a very basic censorship / word blocking mechanism
//new Digitigrade\Policy\BasicCensor(['fuck', 'shit'], '••••'),
// replaces text like %Instance.domain in notes with the corresponding value when sending to remote instances
// e.g. users on social.example would see "hello %Instance.domain" as "hello social.example" on their end
//new Digitigrade\Policy\RemoteInstanceInfoSubstitution,
);
|