Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clarification for domain/uri in API Instance response #1388

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daprice
Copy link
Contributor

@daprice daprice commented Jan 11, 2024

Since LOCAL_DOMAIN and WEB_DOMAIN can be separate, as an API user I needed to be aware of the distinction when using this property.

Since `LOCAL_DOMAIN` and `WEB_DOMAIN` can be separate, as an API user I
needed to be aware of the distinction when using this property.
Copy link

vercel bot commented Jan 11, 2024

@daprice is attempting to deploy a commit to the Mastodon Team on Vercel.

A member of the Team first needs to authorize it.

@@ -169,7 +169,7 @@ aliases: [

### `domain` {#domain}

**Description:** The domain name of the instance.\
**Description:** The domain name of the instance. Corresponds to the configured `LOCAL_DOMAIN`, which is used for account handles, and is not necessarily the same as `WEB_DOMAIN` where the Mastodon API and web interface are hosted.\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to suggest adding:

If `LOCAL_DOMAIN` is not set, then this will be the host portion of `WEB_DOMAIN`

But I'm not sure that's actually true from what I can see in the code?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what you mean here, but there is not necessarily any relation between LOCAL_DOMAIN and WEB_DOMAIN

@andypiper andypiper added the API The Mastodon core API label Jan 13, 2024
@andypiper andypiper self-assigned this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API The Mastodon core API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants