diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-11-11 09:41:41 -0600 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2021-05-11 16:50:10 -0500 |
commit | a121997ec764f09f64b960ff4b0a98a7d8b680c1 (patch) | |
tree | e6bb9ee4ac95ff483c72e392287ec5078afecda6 | |
parent | 3d43ee2aeb37814c43fc01d3141cd7f3a4fa9e17 (diff) | |
download | pleroma-a121997ec764f09f64b960ff4b0a98a7d8b680c1.tar.gz |
Not worth it to support regex. Bare keyword matches is sufficient.
-rw-r--r-- | lib/pleroma/web/activity_pub/mrf/auto_subject_policy.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/activity_pub/mrf/auto_subject_policy.ex b/lib/pleroma/web/activity_pub/mrf/auto_subject_policy.ex index 7386d5acc..5bdca08a0 100644 --- a/lib/pleroma/web/activity_pub/mrf/auto_subject_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/auto_subject_policy.ex @@ -118,15 +118,15 @@ defmodule Pleroma.Web.ActivityPub.MRF.AutoSubjectPolicy do related_policy: "Pleroma.Web.ActivityPub.MRF.AutoSubjectPolicy", label: "MRF AutoSubject", description: - "Adds subject to messages matching a keyword or [Regex](https://hexdocs.pm/elixir/Regex.html).", + "Adds subject to messages matching a keyword or list of keywords.", children: [ %{ key: :match, type: {:list, :tuple}, description: """ - **Pattern**: a string or [Regex](https://hexdocs.pm/elixir/Regex.html) in the format of `~r/PATTERN/`. + **Keyword**: a string or list of keywords. E.g., to in the form of ["", " - **Keyword**: a keyword to apply to the subject field. + **Subject**: a string to insert into the subject field. """ } ] |