diff --git a/api/src/processing/services/reddit.js b/api/src/processing/services/reddit.js index 61402777..b5283d65 100644 --- a/api/src/processing/services/reddit.js +++ b/api/src/processing/services/reddit.js @@ -48,15 +48,12 @@ async function getAccessToken() { return access_token; } -async function resolveShortLink(url) { - return await getRedirectingURL(url); -} export default async function(obj) { let url; if (obj.shortLink) { - const resolvedUrl = await resolveShortLink(obj.shortLink); + const resolvedUrl = await getRedirectingURL(obj.shortLink); if (!resolvedUrl) return { error: "fetch.short_link" }; url = new URL(resolvedUrl); } else {