feat: Additional instance configuration (#260)
This commit is contained in:
parent
2bfa9dc476
commit
c505543a73
3 changed files with 11 additions and 2 deletions
|
@ -39,6 +39,10 @@ export async function loginTo(user?: Omit<UserLogin, 'account'> & { account?: Ac
|
|||
const masto = await loginMasto({
|
||||
url: `https://${user?.server || DEFAULT_SERVER}`,
|
||||
accessToken: user?.token,
|
||||
// Masto uses Mastodon version checks to see what features are enabled.
|
||||
// Mastodon alternatives like GoToSocial will always fail these checks, so
|
||||
// provide a way to disable them.
|
||||
disableVersionCheck: process.env.MASTO_DISABLE_VERSION_CHECK === 'true',
|
||||
})
|
||||
|
||||
if (!user?.token) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue