Skip to content

Commit

Permalink
Add language in the same fashion as spoiler_text.
Browse files Browse the repository at this point in the history
  • Loading branch information
ETdoFresh committed Jan 19, 2023
1 parent fefd832 commit d1087cb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nodes/Mastodon/Mastodon_Methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export const methods = {
body.spoiler_text = additionalFields.spoilerText as string;
}

if (additionalFields.language) {
body.language = additionalFields.language as string;
}

if (additionalFields.attachments) {
const attachments = additionalFields.attachments as string;

Expand Down
7 changes: 7 additions & 0 deletions nodes/Mastodon/Mastodon_Properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ export const properties = {
description:
'Text to be shown as a warning or subject before the actual content',
},
{
displayName: 'Language',
name: 'language',
type: 'string',
default: '',
description: 'The language of the status update',
},
],
} as INodeProperties,
],
Expand Down
1 change: 1 addition & 0 deletions nodes/Mastodon/StatusInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export interface IStatus {
status: string;
in_reply_to_id?: string;
spoiler_text?: string;
language?: string;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n8n-nodes-mastodon",
"version": "0.0.3",
"version": "0.0.4",
"description": "Mastodon is a decentralized, open-source software that allows users to set up servers to communicate with each other. Fork from ETdoFresh with some added features",
"keywords": [
"n8n-community-node-package"
Expand Down

0 comments on commit d1087cb

Please sign in to comment.