Skip to content

Commit

Permalink
fixup! api/pinterest: use shortlink resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Feb 8, 2025
1 parent 5aaa2da commit 5fdc1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/processing/services/pinterest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default async function(o) {
let id = o.id;

if (!o.id && o.shortLink) {
const patternMatch = await resolveRedirectingURL('pinterest', 'https://pin.it/w67TfsZ');
const patternMatch = await resolveRedirectingURL(`https://api.pinterest.com/url_shortener/${o.shortLink}/redirect/`);
id = patternMatch?.id;
}

Expand Down

0 comments on commit 5fdc1bc

Please sign in to comment.