reddit: don't include title in API request path
This commit is contained in:
parent
190a0131d4
commit
7468b803fb
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ async function getAccessToken() {
|
|||
}
|
||||
|
||||
export default async function(obj) {
|
||||
const url = new URL(`https://www.reddit.com/r/${obj.sub}/comments/${obj.id}/${obj.title}.json`);
|
||||
const url = new URL(`https://www.reddit.com/r/${obj.sub}/comments/${obj.id}.json`);
|
||||
|
||||
const accessToken = await getAccessToken();
|
||||
if (accessToken) url.hostname = 'oauth.reddit.com';
|
||||
|
|
Loading…
Reference in a new issue