Skip to content

Commit c84d660

Browse files
authored
Merge pull request #134 from rodrgds/patch-1
Fix Mastodon provider docs typo and include new info about using a custom Mastodon instance
2 parents 296aab0 + bbc3c73 commit c84d660

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pages/providers/mastodon.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ import {Steps, Callout} from "nextra/components";
77
import OAuth2Redirect from "../../components/snippets/oauth2redirect.tsx";
88

99
<Callout>
10-
Watch the YouTube Tutorial:
10+
Watch the YouTube Tutorial:
1111
https://youtu.be/IAnfbE_htqg?si=z30m5qS8qLDN9R0X
1212
</Callout>
1313

14-
Mastodon client registration is not done via ther web interface, but by talking to the API directly. In the example below, we use `curl` to register a new client.
14+
Mastodon client registration is not done via the web interface, but by talking to the API directly. In the example below, we use `curl` to register a new client.
1515

1616
Optionally check that you have `jq` installed on your system. You can normally install this with brew, apt-get, yum or chocolatey. If you don't have `jq` installed, you can remove it from the command below.
1717

1818
<OAuth2Redirect provider = "mastodon" />
1919

20+
<Callout type="info">
21+
The examples on this page use `https://mastodon.social` as the default Mastodon instance. If you are setting up Postiz to connect to a different self-hosted Mastodon instance (e.g., `https://fosstodon.org`), you must replace `https://mastodon.social` with your instance's URL in the `curl` command below. You will also need to ensure the `MASTODON_URL` environment variable in your application's `.env` file (or equivalent configuration for Docker, etc.) is set to your custom instance's URL.
22+
</Callout>
23+
2024
Run the following curl command in a terminal to get the Mastodon client id and client secret.
2125

2226
```bash
@@ -42,6 +46,7 @@ Make a note of your `client_id` and `client_secret` and add them to your `.env`
4246
```env
4347
MASTODON_CLIENT_ID="shown in the output from the above command"
4448
MASTODON_CLIENT_SECRET="shown in the output from the above command"
49+
MASTODON_URL="https://mastodon.social" # Change this if connecting to a different instance
4550
```
4651

4752
Stop Postiz if it is running, and then start it using the .env file with the Mastodon details. Click through the new channel setup and you should be asked to login on Mastodon.

0 commit comments

Comments
 (0)