fix(LinkedIn Node): Remove unsupported description from image posts (#6446)

This commit is contained in:
Jon 2023-06-16 10:13:54 +01:00 committed by GitHub
parent ffd13f4541
commit 529f0e4996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -113,9 +113,6 @@ export class LinkedIn implements INodeType {
};
if (shareMediaCategory === 'IMAGE') {
if (additionalFields.description) {
description = additionalFields.description as string;
}
if (additionalFields.title) {
title = additionalFields.title as string;
}
@ -145,7 +142,6 @@ export class LinkedIn implements INodeType {
media: {
title,
id: image,
description,
},
},
commentary: text,

View file

@ -156,7 +156,7 @@ export const postFields: INodeProperties[] = [
description: 'Provide a short description for your image or article',
displayOptions: {
show: {
'/shareMediaCategory': ['ARTICLE', 'IMAGE'],
'/shareMediaCategory': ['ARTICLE'],
},
},
},