summaryrefslogtreecommitdiff
path: root/config/description.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-07-23 10:28:52 +0000
committerlain <lain@soykaf.club>2020-07-23 10:28:52 +0000
commita81581472fed4ca736e71dad11dc29882eca975f (patch)
tree9d8cfeb21c25233fe538d3bd0647689fd998c842 /config/description.exs
parent1c9752cff445ab1f58cea1617d3c7ab73da60e10 (diff)
parentb6488a4db4accc6cda716c5fdfb03f5a30ddf3d4 (diff)
downloadpleroma-a81581472fed4ca736e71dad11dc29882eca975f.tar.gz
pleroma-a81581472fed4ca736e71dad11dc29882eca975f.zip
Merge branch 'linkify' into 'develop'
Fix Linkify See merge request pleroma/pleroma!2792
Diffstat (limited to 'config/description.exs')
-rw-r--r--config/description.exs20
1 files changed, 14 insertions, 6 deletions
diff --git a/config/description.exs b/config/description.exs
index f1c6773f1..b97b0a7ec 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -2216,11 +2216,12 @@ config :pleroma, :config_description, [
]
},
%{
- group: :auto_linker,
- key: :opts,
+ group: :pleroma,
+ key: Pleroma.Formatter,
label: "Auto Linker",
type: :group,
- description: "Configuration for the auto_linker library",
+ description:
+ "Configuration for Pleroma's link formatter which parses mentions, hashtags, and URLs.",
children: [
%{
key: :class,
@@ -2237,24 +2238,31 @@ config :pleroma, :config_description, [
%{
key: :new_window,
type: :boolean,
- description: "Link URLs will open in new window/tab"
+ description: "Link URLs will open in a new window/tab."
},
%{
key: :truncate,
type: [:integer, false],
description:
- "Set to a number to truncate URLs longer then the number. Truncated URLs will end in `..`",
+ "Set to a number to truncate URLs longer than the number. Truncated URLs will end in `...`",
suggestions: [15, false]
},
%{
key: :strip_prefix,
type: :boolean,
- description: "Strip the scheme prefix"
+ description: "Strip the scheme prefix."
},
%{
key: :extra,
type: :boolean,
description: "Link URLs with rarely used schemes (magnet, ipfs, irc, etc.)"
+ },
+ %{
+ key: :validate_tld,
+ type: [:atom, :boolean],
+ description:
+ "Set to false to disable TLD validation for URLs/emails. Can be set to :no_scheme to validate TLDs only for URLs without a scheme (e.g `example.com` will be validated, but `http://example.loki` won't)",
+ suggestions: [:no_scheme, true]
}
]
},