OC.Automate.Mastodon
1.0.5
dotnet add package OC.Automate.Mastodon --version 1.0.5
NuGet\Install-Package OC.Automate.Mastodon -Version 1.0.5
<PackageReference Include="OC.Automate.Mastodon" Version="1.0.5" />
<PackageVersion Include="OC.Automate.Mastodon" Version="1.0.5" />
<PackageReference Include="OC.Automate.Mastodon" />
paket add OC.Automate.Mastodon --version 1.0.5
#r "nuget: OC.Automate.Mastodon, 1.0.5"
#:package OC.Automate.Mastodon@1.0.5
#addin nuget:?package=OC.Automate.Mastodon&version=1.0.5
#tool nuget:?package=OC.Automate.Mastodon&version=1.0.5
OC.Automate.Mastodon
A Mastodon connection type and action for Umbraco Automate. Post statuses to any Mastodon instance as part of an automation workflow.
Installation
dotnet add package OC.Automate.Mastodon
No further setup required. The composer registers itself automatically via Umbraco's IComposer discovery.
Setup
1. Generate a Mastodon access token
In your Mastodon account go to Preferences → Development → New application and create an application with the write:statuses scope. Copy the access token.
2. Add the token to appsettings
Access tokens are stored in configuration, not the backoffice. Add the following to your appsettings.json (or appsettings.Production.json):
{
"OC.Automate.Mastodon": {
"AccessTokens": {
"myaccount": "your-access-token-here"
}
}
}
The key (myaccount above) is a name you choose — you will reference it when creating the connection in the backoffice. You can add multiple entries if you need to post from more than one account.
For production it is recommended to supply tokens via environment variables rather than a config file:
OC__Automate__Mastodon__AccessTokens__myaccount=your-access-token-here
3. Create the connection in the backoffice
- Go to Automate → Connections and create a new Mastodon connection.
- Enter your instance URL (e.g.
https://mastodon.social). - Enter the Connection Name — this must match the key you used in appsettings (e.g.
myaccount). - Click Test connection to verify.
Usage
Add the Send Mastodon Post action to any automation and select your Mastodon connection. Available fields:
| Field | Description |
|---|---|
| Content | The post text. Supports ${ binding } expressions. |
| Visibility | public, unlisted, private, or direct. Defaults to public. |
| Post URL | Optional URL appended to the post on a new line. |
| Sensitive | Marks the post as sensitive/NSFW. |
| Spoiler Text | Content warning shown before the post body. |
Compatibility
| Package version | Umbraco Automate | Umbraco CMS |
|---|---|---|
| 1.x | 17.x | 17.x |
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Umbraco.Automate.Core (>= 17.0.0-beta)
- Umbraco.Cms.Core (>= 17.4.0 && < 18.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.