docs: fix Mastodon config documentation (#14672)

This commit is contained in:
Yufan You 2024-03-05 22:43:11 +08:00 committed by GitHub
parent fdf8ff04a5
commit ef800a10bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -377,11 +377,11 @@ Warning: Two Factor Authentication is **not** supported.
For user timeline
apply API here `https://mastodon.example/settings/applications`(repalce `mastodon.example`), please check scope `read:search`
Apply API at `https://mastodon.example/settings/applications` (replace `mastodon.example`). Scopes `read:search` and `read:statuses` are needed.
- `MASTODON_API_HOST`: API instance domain, only domain, no `http://` or `https://` protocol header
- `MASTODON_API_ACCESS_TOKEN`: user access token
- `MASTODON_API_ACCT_DOMAIN`: acct domain for particular instance, Webfinger account URI, like `user@host`
- `MASTODON_API_ACCT_DOMAIN`: acct domain for this instance, i.e. the `domain` in the WebFinger URI `username@domain`. It's usually the same as `MASTODON_API_HOST`.
### Medium

View File

@ -353,11 +353,11 @@ RSSHub 支持使用访问密钥 / 码进行访问控制。开启将会激活全
### Mastodon
用户时间线路由:访问 `https://mastodon.example/settings/applications` 申请(替换掉 `mastodon.example`)。需要 `read:search` 权限
用户时间线路由:访问 `https://mastodon.example/settings/applications` 申请(替换掉 `mastodon.example`)。需要 `read:search` `read:statuses` 权限
- `MASTODON_API_HOST`: API 请求的实例,仅域名,不包括 `http://``https://` 协议头
- `MASTODON_API_ACCESS_TOKEN`: 用户 access token, 申请应用后,在应用配置页可以看到申请者的 access token
- `MASTODON_API_ACCT_DOMAIN`: 该实例本地用户 acct 标识的域名,Webfinger account URI形如 `user@host`
- `MASTODON_API_ACCT_DOMAIN`: 该实例本地用户 acct 标识的域名,即 WebFinger URI `username@domain` 中的 `domain`,一般和 `MASTODON_API_HOST` 相同
### Medium