added tests for ipfs uploader. adapted changelog.md accordingly. improved ipfs uploader with external suggestions

fix lint description.exs
This commit is contained in:
Claudio Maradonna 2022-04-11 15:10:01 +02:00
commit 43dfa58ebd
No known key found for this signature in database
GPG key ID: 0CBA58694C5680D9
7 changed files with 116 additions and 15 deletions

View file

@ -147,7 +147,8 @@ config :pleroma, :config_description, [
type: :string,
description: "GET Gateway URL",
suggestions: [
"get_gateway_url"
"https://ipfs.mydomain.com/<%= cid %>",
"https://<%= cid %>.ipfs.mydomain.com/"
]
},
%{
@ -155,7 +156,7 @@ config :pleroma, :config_description, [
type: :string,
description: "POST Gateway URL",
suggestions: [
"post_gateway_url"
"http://localhost:5001/"
]
}
]

View file

@ -58,10 +58,6 @@ config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
# https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
config :phoenix, :plug_init_mode, :runtime
config :pleroma, Pleroma.Uploaders.IPFS,
post_gateway_url: nil,
get_gateway_url: nil
if File.exists?("./config/dev.secret.exs") do
import_config "dev.secret.exs"
else