fix(LinkedIn Node): Fix issue with posting as user or organization (#6414)

This commit is contained in:
Jon 2023-06-13 15:44:35 +01:00 committed by GitHub
parent fecf62296b
commit d041602754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -42,7 +42,7 @@ export class LinkedInOAuth2Api implements ICredentialType {
name: 'scope',
type: 'hidden',
default:
'=r_liteprofile,r_emailaddress,w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":""}}',
'=w_member_social{{$self["organizationSupport"] === true ? ",w_organization_social":",r_liteprofile,r_emailaddress"}}',
description:
'Standard scopes for posting on behalf of a user or organization. See <a href="https://docs.microsoft.com/en-us/linkedin/marketing/getting-started#available-permissions"> this resource </a>.',
},

View file

@ -29,7 +29,7 @@ export async function linkedInApiRequest(
headers: {
Accept: 'application/json',
'X-Restli-Protocol-Version': '2.0.0',
'LinkedIn-Version': '202301',
'LinkedIn-Version': '202304',
},
method,
body,

View file

@ -107,7 +107,6 @@ export class LinkedIn implements INodeType {
lifecycleState: 'PUBLISHED',
distribution: {
feedDistribution: 'MAIN_FEED',
targetEnties: [],
thirdPartyDistributionChannels: [],
},
visibility,