Fix discord ID search

This commit is contained in:
Takathedinosaur 2024-09-09 00:07:59 +02:00
parent e403b0cbee
commit 858bb67801
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ class TetrioService extends DB {
if (kIsWeb) { if (kIsWeb) {
dUrl = Uri.https('ts.dan63.by', 'oskware_bridge.php', {"endpoint": "tetrioUserByDiscordID", "user": user.toLowerCase().trim()}); dUrl = Uri.https('ts.dan63.by', 'oskware_bridge.php', {"endpoint": "tetrioUserByDiscordID", "user": user.toLowerCase().trim()});
} else { } else {
dUrl = Uri.https('ch.tetr.io', 'api/users/search/${user.toLowerCase().trim()}'); dUrl = Uri.https('ch.tetr.io', 'api/users/search/discord:${user.toLowerCase().trim()}');
} }
try{ try{
final response = await client.get(dUrl); final response = await client.get(dUrl);