forked from devol/degooglizzazione
Update wiki to point to main reddit wiki
This commit is contained in:
parent
e4f61a89a1
commit
363d6ff4b5
4
_wiki.js
4
_wiki.js
@ -12,7 +12,7 @@ const REDDIT_CLIENT_SECRET = process.env.REDDIT_CLIENT_SECRET || 'clientsecret';
|
|||||||
|
|
||||||
// WIKI_: For the Reddit Wiki
|
// WIKI_: For the Reddit Wiki
|
||||||
const WIKI_SUBREDDIT = 'privacy';
|
const WIKI_SUBREDDIT = 'privacy';
|
||||||
const WIKI_PAGE = 'de-go-git';
|
const WIKI_PAGE = 'de-google';
|
||||||
const WIKI_REASON = 'Automated edit from GitHub repo: https://github.com/tycrek/degoogle';
|
const WIKI_REASON = 'Automated edit from GitHub repo: https://github.com/tycrek/degoogle';
|
||||||
|
|
||||||
// Helps POST data be submitted properly
|
// Helps POST data be submitted properly
|
||||||
@ -35,7 +35,7 @@ function updateWiki() {
|
|||||||
let basicAuth = `Basic ${Buffer.from(REDDIT_CLIENT_ID + ':' + REDDIT_CLIENT_SECRET).toString('base64')}`;
|
let basicAuth = `Basic ${Buffer.from(REDDIT_CLIENT_ID + ':' + REDDIT_CLIENT_SECRET).toString('base64')}`;
|
||||||
|
|
||||||
let lastId, token;
|
let lastId, token;
|
||||||
|
|
||||||
getLastRevision(endpoints.revisions)
|
getLastRevision(endpoints.revisions)
|
||||||
.then((mLastId) => lastId = mLastId)
|
.then((mLastId) => lastId = mLastId)
|
||||||
.then(() => getToken(endpoints.token, basicAuth))
|
.then(() => getToken(endpoints.token, basicAuth))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user