mirror of
https://github.com/imputnet/cobalt.git
synced 2026-10-31 14:54:48 +00:00
snapchat: add support for android short links
This commit is contained in:
parent
417a21ea91
commit
bef9b5b172
3 changed files with 4 additions and 6 deletions
|
|
@ -69,7 +69,7 @@ async function getStory(username, storyId) {
|
|||
|
||||
export default async function (obj) {
|
||||
let params = obj;
|
||||
if (obj.hostname === 't.snapchat.com' && obj.shortLink) {
|
||||
if (obj.shortLink) {
|
||||
const link = await getRedirectingURL(`https://t.snapchat.com/${obj.shortLink}`);
|
||||
|
||||
if (!link?.startsWith('https://www.snapchat.com/')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue