mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
Remove unneeded scopes
This commit is contained in:
parent
a557c947ed
commit
3b8d5cdea4
|
@ -6,13 +6,7 @@ import {
|
|||
const scopes = [
|
||||
'identity',
|
||||
'edit',
|
||||
'flair',
|
||||
'history',
|
||||
'modconfig',
|
||||
'modflair',
|
||||
'modlog',
|
||||
'modposts',
|
||||
'modwiki',
|
||||
'mysubreddits',
|
||||
'privatemessages',
|
||||
'read',
|
||||
|
@ -21,8 +15,6 @@ const scopes = [
|
|||
'submit',
|
||||
'subscribe',
|
||||
'vote',
|
||||
'wikiedit',
|
||||
'wikiread',
|
||||
];
|
||||
|
||||
// https://github.com/reddit-archive/reddit/wiki/OAuth2
|
||||
|
|
|
@ -61,9 +61,9 @@ export class Reddit implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'profile',
|
||||
'comment',
|
||||
'post',
|
||||
'profile',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -134,8 +134,8 @@ export class Reddit implements INodeType {
|
|||
// ----------------------------------
|
||||
|
||||
const qs: IDataObject = {
|
||||
thing_id: this.getNodeParameter('targetId', i),
|
||||
text: this.getNodeParameter('text', i),
|
||||
thing_id: this.getNodeParameter('targetId', i),
|
||||
};
|
||||
|
||||
responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs);
|
||||
|
@ -152,7 +152,7 @@ export class Reddit implements INodeType {
|
|||
|
||||
if (operation === 'get') {
|
||||
|
||||
const endpoints: {[key: string]: string} = {
|
||||
const endpoints: { [key: string]: string } = {
|
||||
identity: 'me',
|
||||
blockedUsers: 'me/blocked',
|
||||
friends: 'me/friends',
|
||||
|
|
Loading…
Reference in a new issue