mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 00:09:35 +00:00
Remove AutoLinker scheme
option from the config
This commit is contained in:
parent
c27d1d65bf
commit
3909b5b7b3
|
@ -508,7 +508,6 @@ config :pleroma, :fetch_initial_posts,
|
||||||
|
|
||||||
config :auto_linker,
|
config :auto_linker,
|
||||||
opts: [
|
opts: [
|
||||||
scheme: true,
|
|
||||||
extra: true,
|
extra: true,
|
||||||
# TODO: Set to :no_scheme when it works properly
|
# TODO: Set to :no_scheme when it works properly
|
||||||
validate_tld: true,
|
validate_tld: true,
|
||||||
|
|
|
@ -2171,11 +2171,6 @@ config :pleroma, :config_description, [
|
||||||
type: :boolean,
|
type: :boolean,
|
||||||
description: "Set to `false` to remove target='_blank' attribute"
|
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,
|
key: :truncate,
|
||||||
type: [:integer, false],
|
type: [:integer, false],
|
||||||
|
|
|
@ -13,7 +13,8 @@ defmodule Pleroma.Formatter do
|
||||||
@auto_linker_config hashtag: true,
|
@auto_linker_config hashtag: true,
|
||||||
hashtag_handler: &Pleroma.Formatter.hashtag_handler/4,
|
hashtag_handler: &Pleroma.Formatter.hashtag_handler/4,
|
||||||
mention: true,
|
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
|
def escape_mention_handler("@" <> nickname = mention, buffer, _, _) do
|
||||||
case User.get_cached_by_nickname(nickname) do
|
case User.get_cached_by_nickname(nickname) do
|
||||||
|
|
Loading…
Reference in a new issue