Update types in Pleroma.Formatter group
authorAngelina Filippova <linakirsanova@gmail.com>
Sat, 25 Jul 2020 22:48:50 +0000 (01:48 +0300)
committerAngelina Filippova <linakirsanova@gmail.com>
Sat, 25 Jul 2020 22:48:50 +0000 (01:48 +0300)
config/description.exs

index e4850218e1b5ff11b1422f78f3d4e81fab6d71e3..a5e66f3fb69a3ccd37ec71729142d43ced025e63 100644 (file)
@@ -2235,13 +2235,13 @@ config :pleroma, :config_description, [
     children: [
       %{
         key: :class,
-        type: [:string, false],
+        type: [:string, :boolean],
         description: "Specify the class to be added to the generated link. Disable to clear.",
         suggestions: ["auto-linker", false]
       },
       %{
         key: :rel,
-        type: [:string, false],
+        type: [:string, :boolean],
         description: "Override the rel attribute. Disable to clear.",
         suggestions: ["ugc", "noopener noreferrer", false]
       },
@@ -2252,7 +2252,7 @@ config :pleroma, :config_description, [
       },
       %{
         key: :truncate,
-        type: [:integer, false],
+        type: [:integer, :boolean],
         description:
           "Set to a number to truncate URLs longer than the number. Truncated URLs will end in `...`",
         suggestions: [15, false]