Skip to content

Commit

Permalink
Revert "upd: exclude wordpress from check"
Browse files Browse the repository at this point in the history
This reverts commit bbdb892.
  • Loading branch information
丈槍由紀 committed Nov 18, 2023
1 parent 39bcb8e commit d48ccec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/auth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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.includes('elk.zone') && !session.app.callbackUrl.includes('public-api.wordpress.com') && !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");
}
Expand Down

0 comments on commit d48ccec

Please sign in to comment.