Skip to content

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

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

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

So I perhaps got this the wrong way around.

Copy link
Contributor

Choose a reason for hiding this comment

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

You did get it the wrong way around. (Though there is a fallback to localhost:$PORT, I guess… I wonder if we should maybe only have it explicitly supported in the development mode)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah? Maybe?

@andypiper andypiper added the API The Mastodon core API label Jan 13, 2024
@andypiper andypiper self-assigned this Feb 9, 2024
Copy link

This pull request has merge conflicts that must be resolved before it can be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API The Mastodon core API rebase needed 🚧
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants