diff --git a/src/modules/processing/services/reddit.js b/src/modules/processing/services/reddit.js index 75669538..00b35526 100644 --- a/src/modules/processing/services/reddit.js +++ b/src/modules/processing/services/reddit.js @@ -59,9 +59,13 @@ export default async function(obj) { let data = await fetch( url, { - headers: accessToken && { authorization: `Bearer ${accessToken}` } + headers: { + 'User-Agent': genericUserAgent, + accept: 'application/json', + authorization: accessToken && `Bearer ${accessToken}` + } } - ).then(r => r.json() ).catch(() => {}); + ).then(r => r.json()).catch(() => {}); if (!data || !Array.isArray(data)) return { error: 'ErrorCouldntFetch' };