Public IPFS gateway URL for frontend

pull/8590/head
Viktor Baranov 1 year ago
parent f6a6c384bb
commit 95583bf8af
  1. 2
      CHANGELOG.md
  2. 7
      apps/block_scout_web/lib/block_scout_web/views/nft_helper.ex

@ -23,7 +23,7 @@
### Chore
- [#8584](https://github.com/blockscout/blockscout/pull/8584) - Store chain together with cookie hash in Redis
- [#8579](https://github.com/blockscout/blockscout/pull/8579) - IPFS gateway URL runtime env variable
- [#8579](https://github.com/blockscout/blockscout/pull/8579), [#8590](https://github.com/blockscout/blockscout/pull/8590) - IPFS gateway URL runtime env variable
- [#8573](https://github.com/blockscout/blockscout/pull/8573) - Update Nginx to proxy all frontend paths
- [#8290](https://github.com/blockscout/blockscout/pull/8290) - Update Chromedriver version
- [#8536](https://github.com/blockscout/blockscout/pull/8536), [#8537](https://github.com/blockscout/blockscout/pull/8537), [#8540](https://github.com/blockscout/blockscout/pull/8540), [#8557](https://github.com/blockscout/blockscout/pull/8557) - New issue template

@ -82,11 +82,6 @@ defmodule BlockScoutWeb.NFTHelper do
defp ipfs_link(image_url, prefix) do
ipfs_uid = String.slice(image_url, String.length(prefix)..-1)
ipfs_gateway_url =
:indexer
|> Application.get_env(:ipfs_gateway_url)
|> String.trim_trailing("/")
ipfs_gateway_url <> "/" <> ipfs_uid
"https://ipfs.io/ipfs/" <> ipfs_uid
end
end

Loading…
Cancel
Save