mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-05 18:26:30 +01:00
api/src/services/url: support for longer Loom URL variant containing content ID
This commit is contained in:
parent
1e26788a1e
commit
ae2981451f
1 changed files with 8 additions and 0 deletions
|
@ -85,6 +85,14 @@ function aliasURL(url) {
|
||||||
url.hostname = 'instagram.com';
|
url.hostname = 'instagram.com';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "loom":
|
||||||
|
const idPart = parts[parts.length - 1];
|
||||||
|
if(idPart.length > 32){
|
||||||
|
const actualIdPart = idPart.slice(-32);
|
||||||
|
url.pathname = `/share/${actualIdPart}`;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return url
|
return url
|
||||||
|
|
Loading…
Reference in a new issue