mirror of
https://github.com/tooot-app/app
synced 2025-04-04 21:51:12 +02:00
Remove schema when instance is being added for Pleroma
This commit is contained in:
parent
5a77801188
commit
bb02fadc16
@ -72,7 +72,7 @@ const addInstance = createAsyncThunk(
|
|||||||
appData,
|
appData,
|
||||||
url: domain,
|
url: domain,
|
||||||
token,
|
token,
|
||||||
uri: instance.uri,
|
uri: instance.uri.replace(/^https?:\/\//, ''), // Pleroma includes schema
|
||||||
urls: instance.urls,
|
urls: instance.urls,
|
||||||
account: {
|
account: {
|
||||||
id,
|
id,
|
||||||
|
@ -280,7 +280,7 @@ export const getInstanceUrl = ({ instances: { instances } }: RootState) =>
|
|||||||
instances[findInstanceActive(instances)]?.url
|
instances[findInstanceActive(instances)]?.url
|
||||||
|
|
||||||
export const getInstanceUri = ({ instances: { instances } }: RootState) =>
|
export const getInstanceUri = ({ instances: { instances } }: RootState) =>
|
||||||
instances[findInstanceActive(instances)]?.uri.replace(/^https?:\/\//, '') // Pleroma has schema
|
instances[findInstanceActive(instances)]?.uri
|
||||||
|
|
||||||
export const getInstanceUrls = ({ instances: { instances } }: RootState) =>
|
export const getInstanceUrls = ({ instances: { instances } }: RootState) =>
|
||||||
instances[findInstanceActive(instances)]?.urls
|
instances[findInstanceActive(instances)]?.urls
|
||||||
|
Loading…
x
Reference in New Issue
Block a user