Update src/modules/processing/services/reddit.js

Co-authored-by: jj <log@riseup.net>
Signed-off-by: wukko <me@wukko.me>
This commit is contained in:
wukko 2024-05-03 14:05:29 +06:00 committed by GitHub
parent 99cdba94ef
commit 71890b6a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ export default async function(obj) {
let url = new URL(`https://www.reddit.com/r/${obj.sub}/comments/${obj.id}.json`); let url = new URL(`https://www.reddit.com/r/${obj.sub}/comments/${obj.id}.json`);
if (obj.user) { if (obj.user) {
url = new URL(`https://www.reddit.com/user/${obj.user}/comments/${obj.id}.json`); url.pathname = `/user/${obj.user}/comments/${obj.id}.json`;
} }
const accessToken = await getAccessToken(); const accessToken = await getAccessToken();