Skip to content

Commit

Permalink
Public IPFS gateway URL for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Oct 4, 2023
1 parent f6a6c38 commit 95583bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions apps/block_scout_web/lib/block_scout_web/views/nft_helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 95583bf

Please sign in to comment.