MDL-63262 badges: Show all public badges
Use the "expand" parameter so the backpack returns nested public information about each badge in a public collection. This saves 2 requests per badge and fixes the problem where we don't have permission to see some public badge details.
This commit is contained in:
@@ -354,6 +354,7 @@ class backpack_api_mapping {
|
||||
$options = $this->get_curl_options();
|
||||
|
||||
$post = $this->get_post_params($email, $password, $postparam);
|
||||
|
||||
if ($this->method == 'get') {
|
||||
$response = $curl->get($url, $post, $options);
|
||||
} else if ($this->method == 'post') {
|
||||
|
||||
Reference in New Issue
Block a user