mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 23:09:28 +01:00
comment out the moderators fetching
This commit is contained in:
parent
791014b661
commit
95f7ebb4be
@ -47,6 +47,16 @@ module.exports = function() {
|
|||||||
if(config.use_reddit_oauth) {
|
if(config.use_reddit_oauth) {
|
||||||
moderators_url = `https://oauth.reddit.com/r/${subreddit}/about/moderators`
|
moderators_url = `https://oauth.reddit.com/r/${subreddit}/about/moderators`
|
||||||
}
|
}
|
||||||
|
resolve(returnRelevantKeys(json))
|
||||||
|
/*
|
||||||
|
* The following code is commented out because Reddit doesn't
|
||||||
|
* anymore support fetching moderators for subreddits
|
||||||
|
* when not logged in.
|
||||||
|
* This might change in the future though.
|
||||||
|
* https://codeberg.org/teddit/teddit/issues/207
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
fetch(encodeURI(moderators_url), redditApiGETHeaders())
|
fetch(encodeURI(moderators_url), redditApiGETHeaders())
|
||||||
.then(mod_result => {
|
.then(mod_result => {
|
||||||
if(mod_result.status === 200) {
|
if(mod_result.status === 200) {
|
||||||
@ -72,6 +82,7 @@ module.exports = function() {
|
|||||||
console.error('Error fetching moderators.', error)
|
console.error('Error fetching moderators.', error)
|
||||||
resolve(returnRelevantKeys(json))
|
resolve(returnRelevantKeys(json))
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user