diff options
author | Claudio Maradonna <penguyman@stronzi.org> | 2022-04-16 09:38:49 +0200 |
---|---|---|
committer | Claudio Maradonna <penguyman@stronzi.org> | 2022-07-07 06:29:12 +0200 |
commit | 44659ecd65fb2251f9130fcecf1732b8931104c1 (patch) | |
tree | 88d85f396ae4f0d1d6b91c60f0b6506ba5bc29d7 /test | |
parent | 43dfa58ebda407a0813d398bee8d0ae3e5c9fd5b (diff) | |
download | pleroma-44659ecd65fb2251f9130fcecf1732b8931104c1.tar.gz pleroma-44659ecd65fb2251f9130fcecf1732b8931104c1.zip |
ipfs: revert to String.replace for cid placeholder
ipfs: fix lint
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/uploaders/ipfs_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pleroma/uploaders/ipfs_test.exs b/test/pleroma/uploaders/ipfs_test.exs index f9ae046cf..fc87fa378 100644 --- a/test/pleroma/uploaders/ipfs_test.exs +++ b/test/pleroma/uploaders/ipfs_test.exs @@ -17,7 +17,7 @@ defmodule Pleroma.Uploaders.IPFSTest do clear_config( [Pleroma.Uploaders.IPFS, :get_gateway_url], - "https://<%= cid %>.ipfs.mydomain.com" + "https://{CID}.ipfs.mydomain.com" ) clear_config([Pleroma.Uploaders.IPFS, :post_gateway_url], "http://localhost:5001") @@ -34,7 +34,7 @@ defmodule Pleroma.Uploaders.IPFSTest do test "it returns path to ipfs file with cid as path" do clear_config( [Pleroma.Uploaders.IPFS, :get_gateway_url], - "https://ipfs.mydomain.com/ipfs/<%= cid %>" + "https://ipfs.mydomain.com/ipfs/{CID}" ) assert IPFS.get_file("testcid") == { |