We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17cc573 commit 6233967Copy full SHA for 6233967
src/minty.js
@@ -493,10 +493,15 @@ class Minty {
493
}
494
495
function ensureIpfsUriPrefix(cidOrURI) {
496
- if (!cidOrURI.toString().startsWith('ipfs://')) {
497
- return 'ipfs://' + cidOrURI
+ let uri = cidOrURI.toString()
+ if (!uri.startsWith('ipfs://')) {
498
+ uri = 'ipfs://' + cidOrURI
499
- return cidOrURI.toString()
500
+ // Avoid the Nyan Cat bug (https://github.com/ipfs/go-ipfs/pull/7930)
501
+ if (uri.startsWith('ipfs://ipfs/')) {
502
+ uri = uri.replace('ipfs://ipfs/', 'ipfs://')
503
+ }
504
+ return uri
505
506
507
/**
0 commit comments