Fall back to external baseurl in API client

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1663
environments/review-external-b-nn5jhi/deployments/4617
Alex Gleason 2024-05-21 11:23:27 -05:00
rodzic bda99ba152
commit 75d8cb0877
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -103,7 +103,7 @@ export default (getState: () => RootState, authType: string = 'user'): AxiosInst
const state = getState();
const accessToken = getToken(state, authType);
const me = state.me;
const baseURL = me ? getAuthBaseURL(state, me) : '';
const baseURL = me ? getAuthBaseURL(state, me) : localStorage.getItem('soapbox:external:baseurl') ?? '';
const relayUrl = state.getIn(['instance', 'nostr', 'relay']) as string | undefined;
const pubkey = state.getIn(['instance', 'nostr', 'pubkey']) as string | undefined;