Merge pull request #4456 from blockscout/vb-nft-images-uri-encode

URL encoding for NFT media files URLs
pull/4464/head
Victor Baranov 3 years ago committed by GitHub
commit 825adbbfa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 4
      apps/block_scout_web/lib/block_scout_web/views/tokens/instance/overview_view.ex
  3. 4
      apps/block_scout_web/priv/gettext/default.pot
  4. 4
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -3,6 +3,7 @@
### Features ### Features
### Fixes ### Fixes
- [#4456](https://github.com/blockscout/blockscout/pull/4456) - URL encoding for NFT media files URLs
- [#4453](https://github.com/blockscout/blockscout/pull/4453) - Unescape characters for string output type in the contract response - [#4453](https://github.com/blockscout/blockscout/pull/4453) - Unescape characters for string output type in the contract response
- [#4401](https://github.com/blockscout/blockscout/pull/4401) - Fix displaying of token holders with the same amount - [#4401](https://github.com/blockscout/blockscout/pull/4401) - Fix displaying of token holders with the same amount

@ -154,7 +154,9 @@ defmodule BlockScoutWeb.Tokens.Instance.OverviewView do
end end
defp retrieve_image(image_url) do defp retrieve_image(image_url) do
compose_ipfs_url(image_url) image_url
|> URI.encode()
|> compose_ipfs_url()
end end
defp compose_ipfs_url(image_url) do defp compose_ipfs_url(image_url) do

@ -1332,7 +1332,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:18 #: lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:18
#: lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex:10 #: lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex:10
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:176 #: lib/block_scout_web/views/tokens/instance/overview_view.ex:178
msgid "Metadata" msgid "Metadata"
msgstr "" msgstr ""
@ -2247,7 +2247,7 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:4 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:4
#: lib/block_scout_web/templates/transaction_token_transfer/index.html.eex:7 #: lib/block_scout_web/templates/transaction_token_transfer/index.html.eex:7
#: lib/block_scout_web/views/address_view.ex:346 #: lib/block_scout_web/views/address_view.ex:346
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:175 #: lib/block_scout_web/views/tokens/instance/overview_view.ex:177
#: lib/block_scout_web/views/tokens/overview_view.ex:41 #: lib/block_scout_web/views/tokens/overview_view.ex:41
#: lib/block_scout_web/views/transaction_view.ex:405 #: lib/block_scout_web/views/transaction_view.ex:405
msgid "Token Transfers" msgid "Token Transfers"

@ -1332,7 +1332,7 @@ msgstr ""
#, elixir-format #, elixir-format
#: lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:18 #: lib/block_scout_web/templates/tokens/instance/metadata/index.html.eex:18
#: lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex:10 #: lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex:10
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:176 #: lib/block_scout_web/views/tokens/instance/overview_view.ex:178
msgid "Metadata" msgid "Metadata"
msgstr "" msgstr ""
@ -2247,7 +2247,7 @@ msgstr ""
#: lib/block_scout_web/templates/transaction/_tabs.html.eex:4 #: lib/block_scout_web/templates/transaction/_tabs.html.eex:4
#: lib/block_scout_web/templates/transaction_token_transfer/index.html.eex:7 #: lib/block_scout_web/templates/transaction_token_transfer/index.html.eex:7
#: lib/block_scout_web/views/address_view.ex:346 #: lib/block_scout_web/views/address_view.ex:346
#: lib/block_scout_web/views/tokens/instance/overview_view.ex:175 #: lib/block_scout_web/views/tokens/instance/overview_view.ex:177
#: lib/block_scout_web/views/tokens/overview_view.ex:41 #: lib/block_scout_web/views/tokens/overview_view.ex:41
#: lib/block_scout_web/views/transaction_view.ex:405 #: lib/block_scout_web/views/transaction_view.ex:405
msgid "Token Transfers" msgid "Token Transfers"

Loading…
Cancel
Save