*attempt to return the normal CID before manually finding its base
This commit is contained in:
parent
3955ff2c29
commit
3ba792cd35
|
@ -339,6 +339,10 @@ async function handleIpnsResolve(aq: ActiveQuery) {
|
|||
}
|
||||
|
||||
function getCID(cid: string): CID {
|
||||
try {
|
||||
return CID.parse(cid);
|
||||
} catch {}
|
||||
|
||||
const prefix = substr(cid, 0, 1);
|
||||
|
||||
if (!(prefix in basesByPrefix)) {
|
||||
|
|
Loading…
Reference in New Issue