mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-26 00:59:24 +01:00
pass pref_quarantine_optin-cookie to get quarantined subreddits (fixes #224)
This commit is contained in:
parent
9c1a8edd74
commit
2cb5a5e45a
@ -73,12 +73,15 @@ module.exports = function(fetch) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.redditApiGETHeaders = function() {
|
this.redditApiGETHeaders = function() {
|
||||||
|
let cookies = '_options=%7B%22pref_quarantine_optin%22%3A%20true%7D'
|
||||||
|
|
||||||
if(!config.use_reddit_oauth)
|
if(!config.use_reddit_oauth)
|
||||||
return { method: 'GET' }
|
return { headers: { cookie: cookies }, method: 'GET' }
|
||||||
|
|
||||||
return {
|
return {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${reddit_access_token}`
|
Authorization: `Bearer ${reddit_access_token}`,
|
||||||
|
cookie: cookies
|
||||||
},
|
},
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user