Skip to content

Commit

Permalink
ShowHiddenThings: fix discovery keyword filter bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Sep 20, 2024
1 parent 755e869 commit f7587d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/showHiddenThings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ export default definePlugin({
},
// patch request that queries if term is allowed
{
find: ".GUILD_DISCOVERY_VALID_TERM",
find: ".GUILD_DISCOVERY_VALID_TERM,query:",
predicate: () => settings.store.disableDisallowedDiscoveryFilters,
all: true,
replacement: {
match: /\i\.\i\.get\(\{url:\i\.\i\.GUILD_DISCOVERY_VALID_TERM,query:\{term:\i\},oldFormErrors:!0\}\);/g,
replace: "Promise.resolve({ body: { valid: true } });"
match: /\i\.\i\.get\(\{url:\i\.\i\.GUILD_DISCOVERY_VALID_TERM,query:\{term:\i\},oldFormErrors:!0\}\)/g,
replace: "Promise.resolve({ body: { valid: true } })"
}
}
],
Expand Down

0 comments on commit f7587d9

Please sign in to comment.