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

@ -235,10 +235,8 @@ defmodule Pleroma.Upload do
""
end
uploader = Config.get([Pleroma.Upload, :uploader])
if uploader == Pleroma.Uploaders.IPFS && String.contains?(base_url, "{CID}") do
String.replace(base_url, "{CID}", path)
if String.contains?(base_url, "<%= cid %>") do
EEx.eval_string(base_url, cid: path)
else
[base_url, path]
|> Path.join()