Remove AutoLinker `scheme` option from the config
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 5 Feb 2020 17:13:56 +0000 (21:13 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 5 Feb 2020 17:13:56 +0000 (21:13 +0400)
config/config.exs
config/description.exs
lib/pleroma/formatter.ex

index c57ef1bf76ec69a480a37aa48156be4b4553a01c..d01dd8d7480d4c76088572a9140906f1987bd1b6 100644 (file)
@@ -508,7 +508,6 @@ config :pleroma, :fetch_initial_posts,
 
 config :auto_linker,
   opts: [
-    scheme: true,
     extra: true,
     # TODO: Set to :no_scheme when it works properly
     validate_tld: true,
index 5f3c58b08dbc4bbc62f99cf351e69a0091c7f137..a0cb03e48c5f454aa0cad4ffcbf9ee9078613912 100644 (file)
@@ -2171,11 +2171,6 @@ config :pleroma, :config_description, [
         type: :boolean,
         description: "Set to `false` to remove target='_blank' attribute"
       },
-      %{
-        key: :scheme,
-        type: :boolean,
-        description: "Set to `true` to link urls with schema http://google.com"
-      },
       %{
         key: :truncate,
         type: [:integer, false],
index 19b9af46cc3bb48613c3e5e52b1d9f32f591c041..90895374daa9509ab52766671b0814bb851c9b08 100644 (file)
@@ -13,7 +13,8 @@ defmodule Pleroma.Formatter do
   @auto_linker_config hashtag: true,
                       hashtag_handler: &Pleroma.Formatter.hashtag_handler/4,
                       mention: true,
-                      mention_handler: &Pleroma.Formatter.mention_handler/4
+                      mention_handler: &Pleroma.Formatter.mention_handler/4,
+                      scheme: true
 
   def escape_mention_handler("@" <> nickname = mention, buffer, _, _) do
     case User.get_cached_by_nickname(nickname) do