lib/pleroma/html.ex: Use macros for valid_schemes, change config for schemes
This commit is contained in:
parent
d7654c77de
commit
2154c5dcd8
3 changed files with 32 additions and 50 deletions
|
|
@ -24,7 +24,23 @@ config :pleroma, Pleroma.Uploaders.S3,
|
|||
|
||||
config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"]
|
||||
|
||||
config :pleroma, :uri_schemes, additionnal_schemes: []
|
||||
config :pleroma, :uri_schemes,
|
||||
valid_schemes: [
|
||||
"https",
|
||||
"http",
|
||||
"dat",
|
||||
"dweb",
|
||||
"gopher",
|
||||
"ipfs",
|
||||
"ipns",
|
||||
"irc",
|
||||
"ircs",
|
||||
"magnet",
|
||||
"mailto",
|
||||
"mumble",
|
||||
"ssb",
|
||||
"xmpp"
|
||||
]
|
||||
|
||||
# Configures the endpoint
|
||||
config :pleroma, Pleroma.Web.Endpoint,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue