Remove [true,false] for booleans, it is implicit

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-09-13 17:05:19 +02:00
parent 79376abae3
commit 35dcea3e13
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 68 additions and 194 deletions

View File

@ -39,11 +39,7 @@
key: :link_name, key: :link_name,
type: :boolean, type: :boolean,
description: description:
"If enabled, a name parameter will be added to the url of the upload. For example `https://instance.tld/media/imagehash.png?name=realname.png`", "If enabled, a name parameter will be added to the url of the upload. For example `https://instance.tld/media/imagehash.png?name=realname.png`"
suggestions: [
true,
false
]
}, },
%{ %{
key: :base_url, key: :base_url,
@ -57,11 +53,7 @@
key: :proxy_remote, key: :proxy_remote,
type: :boolean, type: :boolean,
description: description:
"If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected.", "If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected."
suggestions: [
true,
false
]
}, },
%{ %{
key: :proxy_opts, key: :proxy_opts,
@ -190,11 +182,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Allow/disallow send emails", description: "Allow/disallow send emails"
suggestions: [
true,
false
]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
@ -221,8 +209,7 @@
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :ssl, key: :ssl,
type: :boolean, type: :boolean,
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "`Swoosh.Adapters.SMTP` adapter specific setting"
suggestions: [true, false]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
@ -256,8 +243,7 @@
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :no_mx_lookups, key: :no_mx_lookups,
type: :boolean, type: :boolean,
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "`Swoosh.Adapters.SMTP` adapter specific setting"
suggestions: [true, false]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.Sendgrid}, group: {:subgroup, Swoosh.Adapters.Sendgrid},
@ -284,8 +270,7 @@
group: {:subgroup, Swoosh.Adapters.Sendmail}, group: {:subgroup, Swoosh.Adapters.Sendmail},
key: :qmail, key: :qmail,
type: :boolean, type: :boolean,
description: "`Swoosh.Adapters.Sendmail` adapter specific setting", description: "`Swoosh.Adapters.Sendmail` adapter specific setting"
suggestions: [true, false]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.Mandrill}, group: {:subgroup, Swoosh.Adapters.Mandrill},
@ -553,38 +538,22 @@
%{ %{
key: :registrations_open, key: :registrations_open,
type: :boolean, type: :boolean,
description: "Enable registrations for anyone, invitations can be enabled when false", description: "Enable registrations for anyone, invitations can be enabled when false"
suggestions: [
true,
false
]
}, },
%{ %{
key: :invites_enabled, key: :invites_enabled,
type: :boolean, type: :boolean,
description: "Enable user invitations for admins (depends on registrations_open: false)", description: "Enable user invitations for admins (depends on registrations_open: false)"
suggestions: [
true,
false
]
}, },
%{ %{
key: :account_activation_required, key: :account_activation_required,
type: :boolean, type: :boolean,
description: "Require users to confirm their emails before signing in", description: "Require users to confirm their emails before signing in"
suggestions: [
true,
false
]
}, },
%{ %{
key: :federating, key: :federating,
type: :boolean, type: :boolean,
description: "Enable federation with other instances", description: "Enable federation with other instances"
suggestions: [
true,
false
]
}, },
%{ %{
key: :federation_incoming_replies_max_depth, key: :federation_incoming_replies_max_depth,
@ -618,11 +587,7 @@
%{ %{
key: :allow_relay, key: :allow_relay,
type: :boolean, type: :boolean,
description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance", description: "Enable Pleroma's Relay, which makes it possible to follow a whole instance"
suggestions: [
true,
false
]
}, },
%{ %{
key: :rewrite_policy, key: :rewrite_policy,
@ -638,11 +603,7 @@
type: :boolean, type: :boolean,
description: description:
"Makes the client API in authentificated mode-only except for user-profiles." <> "Makes the client API in authentificated mode-only except for user-profiles." <>
" Useful for disabling the Local Timeline and The Whole Known Network", " Useful for disabling the Local Timeline and The Whole Known Network"
suggestions: [
true,
false
]
}, },
%{ %{
key: :quarantined_instances, key: :quarantined_instances,
@ -658,11 +619,7 @@
key: :managed_config, key: :managed_config,
type: :boolean, type: :boolean,
description: description:
"Whenether the config for pleroma-fe is configured in this config or in static/config.json", "Whenether the config for pleroma-fe is configured in this config or in static/config.json"
suggestions: [
true,
false
]
}, },
%{ %{
key: :static_dir, key: :static_dir,
@ -689,11 +646,7 @@
key: :mrf_transparency, key: :mrf_transparency,
type: :boolean, type: :boolean,
description: description:
"Make the content of your Message Rewrite Facility settings public (via nodeinfo)", "Make the content of your Message Rewrite Facility settings public (via nodeinfo)"
suggestions: [
true,
false
]
}, },
%{ %{
key: :mrf_transparency_exclusions, key: :mrf_transparency_exclusions,
@ -709,11 +662,7 @@
type: :boolean, type: :boolean,
description: description:
"Set to true to use extended local nicknames format (allows underscores/dashes)." <> "Set to true to use extended local nicknames format (allows underscores/dashes)." <>
" This will break federation with older software for theses nicknames", " This will break federation with older software for theses nicknames"
suggestions: [
true,
false
]
}, },
%{ %{
key: :max_pinned_statuses, key: :max_pinned_statuses,
@ -741,11 +690,7 @@
key: :no_attachment_links, key: :no_attachment_links,
type: :boolean, type: :boolean,
description: description:
"Set to true to disable automatically adding attachment link text to statuses", "Set to true to disable automatically adding attachment link text to statuses"
suggestions: [
true,
false
]
}, },
%{ %{
key: :welcome_message, key: :welcome_message,
@ -780,20 +725,12 @@
description: description:
"If set to true, only mentions at the beginning of a post will be used to address people in direct messages." <> "If set to true, only mentions at the beginning of a post will be used to address people in direct messages." <>
" This is to prevent accidental mentioning of people when talking about them (e.g. \"@friend hey i really don't like @enemy\")." <> " This is to prevent accidental mentioning of people when talking about them (e.g. \"@friend hey i really don't like @enemy\")." <>
" Default: false", " Default: false"
suggestions: [
true,
false
]
}, },
%{ %{
key: :healthcheck, key: :healthcheck,
type: :boolean, type: :boolean,
description: "If set to true, system data will be shown on /api/pleroma/healthcheck", description: "If set to true, system data will be shown on /api/pleroma/healthcheck"
suggestions: [
true,
false
]
}, },
%{ %{
key: :remote_post_retention_days, key: :remote_post_retention_days,
@ -823,11 +760,7 @@
%{ %{
key: :skip_thread_containment, key: :skip_thread_containment,
type: :boolean, type: :boolean,
description: "Skip filter out broken threads. The default is true", description: "Skip filter out broken threads. The default is true"
suggestions: [
true,
false
]
}, },
%{ %{
key: :limit_to_local_content, key: :limit_to_local_content,
@ -844,11 +777,7 @@
key: :dynamic_configuration, key: :dynamic_configuration,
type: :boolean, type: :boolean,
description: description:
"Allow transferring configuration to DB with the subsequent customization from Admin api. Defaults to `false`", "Allow transferring configuration to DB with the subsequent customization from Admin api. Defaults to `false`"
suggestions: [
true,
false
]
}, },
%{ %{
key: :max_account_fields, key: :max_account_fields,
@ -886,11 +815,7 @@
%{ %{
key: :external_user_synchronization, key: :external_user_synchronization,
type: :boolean, type: :boolean,
description: "Enabling following/followers counters synchronization for external users", description: "Enabling following/followers counters synchronization for external users"
suggestions: [
true,
false
]
} }
] ]
}, },
@ -1069,48 +994,40 @@
%{ %{
key: :showInstanceSpecificPanel, key: :showInstanceSpecificPanel,
type: :boolean, type: :boolean,
description: "Whenether to show the instance's specific panel", description: "Whenether to show the instance's specific panel"
suggestions: [true, false]
}, },
%{ %{
key: :scopeOptionsEnabled, key: :scopeOptionsEnabled,
type: :boolean, type: :boolean,
description: "Enable setting an notice visibility and subject/CW when posting", description: "Enable setting an notice visibility and subject/CW when posting"
suggestions: [true, false]
}, },
%{ %{
key: :formattingOptionsEnabled, key: :formattingOptionsEnabled,
type: :boolean, type: :boolean,
description: description:
"Enable setting a formatting different than plain-text (ie. HTML, Markdown) when posting, relates to :instance, allowed_post_formats", "Enable setting a formatting different than plain-text (ie. HTML, Markdown) when posting, relates to :instance, allowed_post_formats"
suggestions: [true, false]
}, },
%{ %{
key: :collapseMessageWithSubject, key: :collapseMessageWithSubject,
type: :boolean, type: :boolean,
description: description:
"When a message has a subject(aka Content Warning), collapse it by default", "When a message has a subject(aka Content Warning), collapse it by default"
suggestions: [true, false]
}, },
%{ %{
key: :hidePostStats, key: :hidePostStats,
type: :boolean, type: :boolean,
description: "Hide notices statistics(repeats, favorites, ...)", description: "Hide notices statistics(repeats, favorites, ...)"
suggestions: [true, false]
}, },
%{ %{
key: :hideUserStats, key: :hideUserStats,
type: :boolean, type: :boolean,
description: description:
"Hide profile statistics(posts, posts per day, followers, followings, ...)", "Hide profile statistics(posts, posts per day, followers, followings, ...)"
suggestions: [true, false]
}, },
%{ %{
key: :scopeCopy, key: :scopeCopy,
type: :boolean, type: :boolean,
description: description: "Copy the scope (private/unlisted/public) in replies to posts by default"
"Copy the scope (private/unlisted/public) in replies to posts by default",
suggestions: [true, false]
}, },
%{ %{
key: :subjectLineBehavior, key: :subjectLineBehavior,
@ -1124,8 +1041,7 @@
%{ %{
key: :alwaysShowSubjectInput, key: :alwaysShowSubjectInput,
type: :boolean, type: :boolean,
description: "When set to false, auto-hide the subject field when it's empty", description: "When set to false, auto-hide the subject field when it's empty"
suggestions: [true, false]
} }
] ]
}, },
@ -1142,8 +1058,7 @@
%{ %{
key: :showInstanceSpecificPanel, key: :showInstanceSpecificPanel,
type: :boolean, type: :boolean,
description: "Whenether to show the instance's specific panel", description: "Whenether to show the instance's specific panel"
suggestions: [true, false]
} }
] ]
} }
@ -1271,14 +1186,12 @@
%{ %{
key: :allow_followersonly, key: :allow_followersonly,
type: :boolean, type: :boolean,
description: "whether to allow followers-only posts", description: "whether to allow followers-only posts"
suggestions: [true, false]
}, },
%{ %{
key: :allow_direct, key: :allow_direct,
type: :boolean, type: :boolean,
description: "whether to allow direct messages", description: "whether to allow direct messages"
suggestions: [true, false]
} }
] ]
}, },
@ -1393,8 +1306,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Enables proxying of remote media to the instance's proxy", description: "Enables proxying of remote media to the instance's proxy"
suggestions: [true, false]
}, },
%{ %{
key: :base_url, key: :base_url,
@ -1426,8 +1338,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Enables the gopher interface", description: "Enables the gopher interface"
suggestions: [true, false]
}, },
%{ %{
key: :ip, key: :ip,
@ -1601,8 +1512,7 @@
%{ %{
key: :secure_cookie_flag, key: :secure_cookie_flag,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :extra_cookie_attrs, key: :extra_cookie_attrs,
@ -1621,20 +1531,17 @@
%{ %{
key: :unfollow_blocked, key: :unfollow_blocked,
type: :boolean, type: :boolean,
description: "Whether blocks result in people getting unfollowed", description: "Whether blocks result in people getting unfollowed"
suggestions: [true, false]
}, },
%{ %{
key: :outgoing_blocks, key: :outgoing_blocks,
type: :boolean, type: :boolean,
description: "Whether to federate blocks to other instances", description: "Whether to federate blocks to other instances"
suggestions: [true, false]
}, },
%{ %{
key: :sign_object_fetches, key: :sign_object_fetches,
type: :boolean, type: :boolean,
description: "Sign object fetches with HTTP signatures", description: "Sign object fetches with HTTP signatures"
suggestions: [true, false]
}, },
%{ %{
key: :follow_handshake_timeout, key: :follow_handshake_timeout,
@ -1653,14 +1560,12 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Whether the managed content security policy is enabled", description: "Whether the managed content security policy is enabled"
suggestions: [true, false]
}, },
%{ %{
key: :sts, key: :sts,
type: :boolean, type: :boolean,
description: "Whether to additionally send a Strict-Transport-Security header", description: "Whether to additionally send a Strict-Transport-Security header"
suggestions: [true, false]
}, },
%{ %{
key: :sts_max_age, key: :sts_max_age,
@ -1727,8 +1632,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Whether the captcha should be shown on registration", description: "Whether the captcha should be shown on registration"
suggestions: [true, false]
}, },
%{ %{
key: :method, key: :method,
@ -1817,8 +1721,7 @@
%{ %{
key: :verbose, key: :verbose,
type: :boolean, type: :boolean,
description: "Logs verbose mode", description: "Logs verbose mode"
suggestions: [false, true]
}, },
%{ %{
key: :prune, key: :prune,
@ -1937,11 +1840,7 @@
%{ %{
key: :unfurl_nsfw, key: :unfurl_nsfw,
type: :boolean, type: :boolean,
description: "If set to true nsfw attachments will be shown in previews", description: "If set to true nsfw attachments will be shown in previews"
suggestions: [
true,
false
]
} }
] ]
}, },
@ -1955,8 +1854,7 @@
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: description:
"if enabled the instance will parse metadata from attached links to generate link previews", "if enabled the instance will parse metadata from attached links to generate link previews"
suggestions: [true, false]
}, },
%{ %{
key: :ignore_hosts, key: :ignore_hosts,
@ -1998,8 +1896,7 @@
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: description:
"if enabled, when a new user is federated with, fetch some of their latest posts", "if enabled, when a new user is federated with, fetch some of their latest posts"
suggestions: [true, false]
}, },
%{ %{
key: :pages, key: :pages,
@ -2030,14 +1927,12 @@
%{ %{
key: :new_window, key: :new_window,
type: :boolean, type: :boolean,
description: "set to false to remove target='_blank' attribute", description: "set to false to remove target='_blank' attribute"
suggestions: [true, false]
}, },
%{ %{
key: :scheme, key: :scheme,
type: :boolean, type: :boolean,
description: "Set to true to link urls with schema http://google.com", description: "Set to true to link urls with schema http://google.com"
suggestions: [true, false]
}, },
%{ %{
key: :truncate, key: :truncate,
@ -2049,14 +1944,12 @@
%{ %{
key: :strip_prefix, key: :strip_prefix,
type: :boolean, type: :boolean,
description: "Strip the scheme prefix", description: "Strip the scheme prefix"
suggestions: [true, false]
}, },
%{ %{
key: :extra, key: :extra,
type: :boolean, type: :boolean,
description: "link urls with rarely used schemes (magnet, ipfs, irc, etc.)", description: "link urls with rarely used schemes (magnet, ipfs, irc, etc.)"
suggestions: [true, false]
} }
] ]
}, },
@ -2083,8 +1976,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "whether scheduled activities are sent to the job queue to be executed", description: "whether scheduled activities are sent to the job queue to be executed"
suggestions: [true, false]
} }
] ]
}, },
@ -2097,8 +1989,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "whether expired activities will be sent to the job queue to be deleted", description: "whether expired activities will be sent to the job queue to be deleted"
suggestions: [true, false]
} }
] ]
}, },
@ -2128,8 +2019,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "enables LDAP authentication", description: "enables LDAP authentication"
suggestions: [true, false]
}, },
%{ %{
key: :host, key: :host,
@ -2146,8 +2036,7 @@
%{ %{
key: :ssl, key: :ssl,
type: :boolean, type: :boolean,
description: "true to use SSL, usually implies the port 636", description: "true to use SSL, usually implies the port 636"
suggestions: [true, false]
}, },
%{ %{
key: :sslopts, key: :sslopts,
@ -2158,8 +2047,7 @@
%{ %{
key: :tls, key: :tls,
type: :boolean, type: :boolean,
description: "true to start TLS, usually implies the port 389", description: "true to start TLS, usually implies the port 389"
suggestions: [true, false]
}, },
%{ %{
key: :tlsopts, key: :tlsopts,
@ -2237,8 +2125,7 @@
%{ %{
key: :active, key: :active,
type: :boolean, type: :boolean,
description: "globally enable or disable digest emails", description: "globally enable or disable digest emails"
suggestions: [true, false]
}, },
%{ %{
key: :schedule, key: :schedule,
@ -2346,14 +2233,12 @@
key: :issue_new_refresh_token, key: :issue_new_refresh_token,
type: :boolean, type: :boolean,
description: description:
"Keeps old refresh token or generate new refresh token when to obtain an access token", "Keeps old refresh token or generate new refresh token when to obtain an access token"
suggestions: [true, false]
}, },
%{ %{
key: :clean_expired_tokens, key: :clean_expired_tokens,
type: :boolean, type: :boolean,
description: "Enable a background job to clean expired oauth tokens. Defaults to false", description: "Enable a background job to clean expired oauth tokens. Defaults to false"
suggestions: [true, false]
}, },
%{ %{
key: :clean_expired_tokens_interval, key: :clean_expired_tokens_interval,
@ -2415,8 +2300,7 @@
%{ %{
key: :rum_enabled, key: :rum_enabled,
type: :boolean, type: :boolean,
description: "If RUM indexes should be used. Defaults to false", description: "If RUM indexes should be used. Defaults to false"
suggestions: [true, false]
} }
] ]
}, },
@ -2475,8 +2359,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Enables ssh", description: "Enables ssh"
suggestions: [true, false]
}, },
%{ %{
key: :priv_dir, key: :priv_dir,
@ -2579,8 +2462,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
} }
] ]
}, },
@ -2593,8 +2475,7 @@
%{ %{
key: :enabled, key: :enabled,
type: :boolean, type: :boolean,
description: "Enables suggestions", description: "Enables suggestions"
suggestions: []
}, },
%{ %{
key: :third_party_engine, key: :third_party_engine,
@ -2686,8 +2567,7 @@
%{ %{
key: :send_user_agent, key: :send_user_agent,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :adapter, key: :adapter,
@ -2715,26 +2595,22 @@
%{ %{
key: :allow_inline_images, key: :allow_inline_images,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :allow_headings, key: :allow_headings,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :allow_tables, key: :allow_tables,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :allow_fonts, key: :allow_fonts,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :scrub_policy, key: :scrub_policy,
@ -2753,8 +2629,7 @@
%{ %{
key: :deny_follow_blocked, key: :deny_follow_blocked,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
} }
] ]
}, },
@ -2854,8 +2729,7 @@
%{ %{
key: :credentials, key: :credentials,
type: :boolean, type: :boolean,
description: "", description: ""
suggestions: [true, false]
}, },
%{ %{
key: :headers, key: :headers,