mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 19:28:29 +00:00
chore: remove redundancy
This commit is contained in:
parent
0dfc59a972
commit
48c48c61de
@ -16,8 +16,6 @@ export default async function(obj) {
|
||||
link = `https://www.snapchat.com/add/${obj.username}/${obj.storyId}`
|
||||
} else if (!link && obj.spotlightId) {
|
||||
link = `https://www.snapchat.com/spotlight/${obj.spotlightId}`
|
||||
} else if (link?.startsWith('https://www.snapchat.com/download')) {
|
||||
return { error: 'ErrorCouldntFetch' };
|
||||
}
|
||||
|
||||
const path = new URL(link).pathname;
|
||||
|
Loading…
Reference in New Issue
Block a user