Revert Duolingo code to commit c9cebf0 with public API fix

This commit is contained in:
User
2026-03-12 16:36:25 +08:00
parent d1bf6be19d
commit f9dc3f7a40
4 changed files with 3 additions and 3 deletions

View File

@@ -5273,7 +5273,7 @@ function argon_get_duolingo_data($force_refresh = false) {
}
}
$url = 'https://www.duolingo.com/2017-06-30/users?username=' . urlencode($username) . '&fields=streak,streakData%7BcurrentStreak,previousStreak%7D';
$url = 'https://www.duolingo.com/2017-06-30/users?username=' . urlencode($username) . '&fields=users%7Bstreak,streakData%7BcurrentStreak,previousStreak%7D%7D';
$response = wp_remote_get($url, array(
'timeout' => 15,