mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 19:57:34 -06:00
[feature] Application creation + management via API + settings panel
This commit is contained in:
parent
daf60f69a0
commit
e86f7ef0d9
61 changed files with 3016 additions and 252 deletions
|
|
@ -141,7 +141,7 @@ const extended = gtsApi.injectEndpoints({
|
|||
searchItemForEmoji: build.mutation<EmojisFromItem, string>({
|
||||
async queryFn(url, api, _extraOpts, fetchWithBQ) {
|
||||
const state = api.getState() as RootState;
|
||||
const oauthState = state.oauth;
|
||||
const loginState = state.login;
|
||||
|
||||
// First search for given url.
|
||||
const searchRes = await fetchWithBQ({
|
||||
|
|
@ -161,8 +161,8 @@ const extended = gtsApi.injectEndpoints({
|
|||
|
||||
// Ensure emojis domain is not OUR domain. If it
|
||||
// is, we already have the emojis by definition.
|
||||
if (oauthState.instanceUrl !== undefined) {
|
||||
if (domain == new URL(oauthState.instanceUrl).host) {
|
||||
if (loginState.instanceUrl !== undefined) {
|
||||
if (domain == new URL(loginState.instanceUrl).host) {
|
||||
throw "LOCAL_INSTANCE";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue