mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(LinkedIn Node): Remove unsupported description from image posts (#6446)
This commit is contained in:
parent
ffd13f4541
commit
529f0e4996
|
@ -113,9 +113,6 @@ export class LinkedIn implements INodeType {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (shareMediaCategory === 'IMAGE') {
|
if (shareMediaCategory === 'IMAGE') {
|
||||||
if (additionalFields.description) {
|
|
||||||
description = additionalFields.description as string;
|
|
||||||
}
|
|
||||||
if (additionalFields.title) {
|
if (additionalFields.title) {
|
||||||
title = additionalFields.title as string;
|
title = additionalFields.title as string;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +142,6 @@ export class LinkedIn implements INodeType {
|
||||||
media: {
|
media: {
|
||||||
title,
|
title,
|
||||||
id: image,
|
id: image,
|
||||||
description,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
commentary: text,
|
commentary: text,
|
||||||
|
|
|
@ -156,7 +156,7 @@ export const postFields: INodeProperties[] = [
|
||||||
description: 'Provide a short description for your image or article',
|
description: 'Provide a short description for your image or article',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
'/shareMediaCategory': ['ARTICLE', 'IMAGE'],
|
'/shareMediaCategory': ['ARTICLE'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue