From 4d3dee7022588b67b773d70acac836f6469425a6 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 24 Sep 2023 22:23:26 +0200 Subject: [PATCH] upd: exclude elk from check --- packages/frontend/src/pages/auth.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/auth.vue b/packages/frontend/src/pages/auth.vue index 1454af63d2..6f10ae1676 100644 --- a/packages/frontend/src/pages/auth.vue +++ b/packages/frontend/src/pages/auth.vue @@ -73,7 +73,7 @@ function accepted() { const isMastodon = !!getUrlParams().mastodon; if (session && session.app.callbackUrl && isMastodon) { const redirectUri = decodeURIComponent(getUrlParams().redirect_uri); - if (!session.app.callbackUrl.split("\n").includes(redirectUri)) { + if (!session.app.callbackUrl.includes('elk.zone') && !session.app.callbackUrl.split("\n").includes(redirectUri)) { state = "fetch-session-error"; throw new Error("Callback URI doesn't match registered app"); }