更改ResourceLoader中的头像地址模板

master
落雨楓 2 years ago
parent 9ae940df88
commit 70075a996b

@ -166,7 +166,7 @@ class IsekaiOIDCAuthHooks {
$wgIsekaiOIDC = $services->getMainConfig()->get('IsekaiOIDC'); $wgIsekaiOIDC = $services->getMainConfig()->get('IsekaiOIDC');
if (isset($wgIsekaiOIDC['avatarUrl'])) { if (isset($wgIsekaiOIDC['avatarUrl'])) {
$vars['wgAvatarTemplate'] = $wgIsekaiOIDC['avatarUrl']; $vars['wgAvatarTemplate'] = '/api.php?action=query&prop=oidcavatar&username={username}&redirect=1&format=json';
} }
return true; return true;
} }

Loading…
Cancel
Save