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',
|
name: 'scope',
|
||||||
type: 'hidden',
|
type: 'hidden',
|
||||||
default:
|
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:
|
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>.',
|
'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: {
|
headers: {
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
'X-Restli-Protocol-Version': '2.0.0',
|
'X-Restli-Protocol-Version': '2.0.0',
|
||||||
'LinkedIn-Version': '202301',
|
'LinkedIn-Version': '202304',
|
||||||
},
|
},
|
||||||
method,
|
method,
|
||||||
body,
|
body,
|
||||||
|
|
|
@ -107,7 +107,6 @@ export class LinkedIn implements INodeType {
|
||||||
lifecycleState: 'PUBLISHED',
|
lifecycleState: 'PUBLISHED',
|
||||||
distribution: {
|
distribution: {
|
||||||
feedDistribution: 'MAIN_FEED',
|
feedDistribution: 'MAIN_FEED',
|
||||||
targetEnties: [],
|
|
||||||
thirdPartyDistributionChannels: [],
|
thirdPartyDistributionChannels: [],
|
||||||
},
|
},
|
||||||
visibility,
|
visibility,
|
||||||
|
|
Loading…
Reference in a new issue