diff options
| author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-30 19:34:02 +0400 |
|---|---|---|
| committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-10-30 19:34:02 +0400 |
| commit | d2113428c027580f1cd4854f6610d64ee9643fd2 (patch) | |
| tree | 36f419da14980da0fcad0e1802e7e627a5540d48 /config | |
| parent | 4a2d7a7a5db2544ffc84e1f0eb0dc86e1cb3c32c (diff) | |
| parent | 131f3219e6b895139c5647cd2050dd22adce7139 (diff) | |
| download | pleroma-d2113428c027580f1cd4854f6610d64ee9643fd2.tar.gz pleroma-d2113428c027580f1cd4854f6610d64ee9643fd2.zip | |
Merge remote-tracking branch 'origin/develop' into feature/account-export
Diffstat (limited to 'config')
| -rw-r--r-- | config/description.exs | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/config/description.exs b/config/description.exs index 8861cddea..0b651696b 100644 --- a/config/description.exs +++ b/config/description.exs @@ -1757,28 +1757,37 @@ config :pleroma, :config_description, [ related_policy: "Pleroma.Web.ActivityPub.MRF.KeywordPolicy", label: "MRF Keyword", type: :group, - description: "Reject or Word-Replace messages with a keyword or regex", + description: + "Reject or Word-Replace messages matching a keyword or [Regex](https://hexdocs.pm/elixir/Regex.html).", children: [ %{ key: :reject, type: {:list, :string}, - description: - "A list of patterns which result in message being rejected. Each pattern can be a string or a regular expression.", + description: """ + A list of patterns which result in message being rejected. + + Each pattern can be a string or [Regex](https://hexdocs.pm/elixir/Regex.html) in the format of `~r/PATTERN/`. + """, suggestions: ["foo", ~r/foo/iu] }, %{ key: :federated_timeline_removal, type: {:list, :string}, - description: - "A list of patterns which result in message being removed from federated timelines (a.k.a unlisted). Each pattern can be a string or a regular expression.", + description: """ + A list of patterns which result in message being removed from federated timelines (a.k.a unlisted). + + Each pattern can be a string or [Regex](https://hexdocs.pm/elixir/Regex.html) in the format of `~r/PATTERN/`. + """, suggestions: ["foo", ~r/foo/iu] }, %{ key: :replace, type: {:list, :tuple}, - description: - "A list of tuples containing {pattern, replacement}. Each pattern can be a string or a regular expression.", - suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}] + description: """ + **Pattern**: a string or [Regex](https://hexdocs.pm/elixir/Regex.html) in the format of `~r/PATTERN/`. + + **Replacement**: a string. Leaving the field empty is permitted. + """ } ] }, |
