diff options
| author | winter | 2025-02-24 18:29:51 +0000 |
|---|---|---|
| committer | winter | 2025-02-24 18:29:51 +0000 |
| commit | a88283c526a779389efa2b819201a2331de0f2b2 (patch) | |
| tree | 684e6aa432d6062373941e3018dfc744adc03ff5 /policies.conf.php | |
| parent | 261ab1364aa40384b0315be60e78cd89ea7fe661 (diff) | |
implement federation policies and instance info substitution policy
Diffstat (limited to 'policies.conf.php')
| -rw-r--r-- | policies.conf.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/policies.conf.php b/policies.conf.php index 389551a..503ca74 100644 --- a/policies.conf.php +++ b/policies.conf.php @@ -3,6 +3,13 @@ // 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, );
\ No newline at end of file |
