Merge pull request #141 from Katamithetaka:master
Fix discord ID search
This commit is contained in:
commit
9d183f7cd3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue