snapchat: clean up
This commit is contained in:
parent
83af16bb12
commit
a388839e15
2 changed files with 14 additions and 14 deletions
|
@ -192,7 +192,7 @@ export default async function(host, patternMatch, lang, obj) {
|
|||
break;
|
||||
case "snapchat":
|
||||
r = await snapchat({
|
||||
url,
|
||||
hostname: url.hostname,
|
||||
...patternMatch
|
||||
});
|
||||
break;
|
||||
|
|
|
@ -67,9 +67,9 @@ async function getStory(username, storyId) {
|
|||
}
|
||||
}
|
||||
|
||||
export default async function(obj) {
|
||||
export default async function (obj) {
|
||||
let params = obj;
|
||||
if (obj.url.hostname === 't.snapchat.com' && obj.shortLink) {
|
||||
if (obj.hostname === 't.snapchat.com' && obj.shortLink) {
|
||||
const link = await getRedirectingURL(`https://t.snapchat.com/${obj.shortLink}`);
|
||||
|
||||
if (!link?.startsWith('https://www.snapchat.com/')) {
|
||||
|
|
Loading…
Reference in a new issue