Skip to content

Commit 07be7ca

Browse files
authored
Update mastodon.mdx
1 parent 296aab0 commit 07be7ca

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

pages/providers/mastodon.mdx

Lines changed: 8 additions & 3 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
@@ -31,7 +35,7 @@ This will give you output that looks something like this;
3135
"redirect_uris": [
3236
"http://localhost:4200/integrations/social/mastodon"
3337
],
34-
...
38+
...
3539
"client_id": "your_client_id",
3640
"client_secret": "your_client_secret"
3741
}
@@ -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)