diff options
author | kaniini <nenolod@gmail.com> | 2019-06-04 05:49:54 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-06-04 05:49:54 +0000 |
commit | 9f0d0d0805d0417636c3cf7aaf14d15ad13d0148 (patch) | |
tree | bf02fc7b03a8b0119c0ba51208462f39f071fd12 /docs/config.md | |
parent | 59f6e794e1cbc1e5e4d9fd9ff7df23186740f83a (diff) | |
parent | 7758148990184ac25e097dc7358a918b89aa3ca9 (diff) | |
download | pleroma-9f0d0d0805d0417636c3cf7aaf14d15ad13d0148.tar.gz pleroma-9f0d0d0805d0417636c3cf7aaf14d15ad13d0148.zip |
Merge branch 'feature/mrf-subchain' into 'develop'
MRF: subchain policy
See merge request pleroma/pleroma!1233
Diffstat (limited to 'docs/config.md')
-rw-r--r-- | docs/config.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md index e37ae6b95..718a7912a 100644 --- a/docs/config.md +++ b/docs/config.md @@ -86,6 +86,7 @@ config :pleroma, Pleroma.Emails.Mailer, * `Pleroma.Web.ActivityPub.MRF.NoOpPolicy`: Doesn’t modify activities (default) * `Pleroma.Web.ActivityPub.MRF.DropPolicy`: Drops all activities. It generally doesn’t makes sense to use in production * `Pleroma.Web.ActivityPub.MRF.SimplePolicy`: Restrict the visibility of activities from certains instances (See ``:mrf_simple`` section) + * `Pleroma.Web.ActivityPub.MRF.SubchainPolicy`: Selectively runs other MRF policies when messages match (see ``:mrf_subchain`` section) * `Pleroma.Web.ActivityPub.MRF.RejectNonPublic`: Drops posts with non-public visibility settings (See ``:mrf_rejectnonpublic`` section) * `Pleroma.Web.ActivityPub.MRF.EnsureRePrepended`: Rewrites posts to ensure that replies to posts with subjects do not have an identical subject and instead begin with re:. * `public`: Makes the client API in authentificated mode-only except for user-profiles. Useful for disabling the Local Timeline and The Whole Known Network. @@ -229,6 +230,21 @@ relates to mascots on the mastodon frontend * `avatar_removal`: List of instances to strip avatars from * `banner_removal`: List of instances to strip banners from +## :mrf_subchain +This policy processes messages through an alternate pipeline when a given message matches certain criteria. +All criteria are configured as a map of regular expressions to lists of policy modules. + +* `match_actor`: Matches a series of regular expressions against the actor field. + +Example: + +``` +config :pleroma, :mrf_subchain, + match_actor: %{ + ~r/https:\/\/example.com/s => [Pleroma.Web.ActivityPub.MRF.DropPolicy] + } +``` + ## :mrf_rejectnonpublic * `allow_followersonly`: whether to allow followers-only posts * `allow_direct`: whether to allow direct messages |