mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(LinkedIn Node): Fix issue with posting as user or organization (#6414)
This commit is contained in:
parent
fecf62296b
commit
d041602754
|
@ -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>.',
|
||||
},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -107,7 +107,6 @@ export class LinkedIn implements INodeType {
|
|||
lifecycleState: 'PUBLISHED',
|
||||
distribution: {
|
||||
feedDistribution: 'MAIN_FEED',
|
||||
targetEnties: [],
|
||||
thirdPartyDistributionChannels: [],
|
||||
},
|
||||
visibility,
|
||||
|
|
Loading…
Reference in a new issue