match: clean up snapchat call & add missing breaks

This commit is contained in:
dumbmoron 2024-07-24 15:17:58 +00:00
parent 4080cd4581
commit b516033f09
No known key found for this signature in database

View file

@ -193,15 +193,14 @@ export default async function(host, patternMatch, lang, obj) {
case "snapchat": case "snapchat":
r = await snapchat({ r = await snapchat({
url, url,
username: patternMatch.username, ...patternMatch
storyId: patternMatch.storyId,
spotlightId: patternMatch.spotlightId,
shortLink: patternMatch.shortLink || false
}); });
break;
case "loom": case "loom":
r = await loom({ r = await loom({
id: patternMatch.id id: patternMatch.id
}); });
break;
case "facebook": case "facebook":
r = await facebook({ r = await facebook({
...patternMatch, ...patternMatch,