From 3b9c6899a43ccb6115190c752665e3ae69cd2cad Mon Sep 17 00:00:00 2001 From: salixor <salixor@pm.me> Date: Thu, 26 Dec 2024 19:53:38 +0100 Subject: [PATCH] Try to use thumbnail ? --- src/matrixeventprocessor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrixeventprocessor.ts b/src/matrixeventprocessor.ts index a9c06d1..dd90f24 100644 --- a/src/matrixeventprocessor.ts +++ b/src/matrixeventprocessor.ts @@ -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"]; -- GitLab