Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 3b9c6899 rédigé par salixor's avatar salixor
Parcourir les fichiers

Try to use thumbnail ?

parent 1fa7dded
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -530,6 +530,10 @@ export class MatrixEventProcessor {
DISCORD_AVATAR_HEIGHT,
"scale",
);
log.info(avatarUrl);
avatarUrl = avatarUrl.replace(this.bridge.botClient.homeserverUrl, "");
log.info(avatarUrl);
log.info(this.bridge.botClient.accessToken);
// eslint-disable-next-line @typescript-eslint/naming-convention
const res = await this.bridge.botClient.doRequest("GET", avatarUrl, { allow_remote: true }, null, undefined, true, undefined, true);
const contentType = res.headers["content-type"];
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter