Skip to content

Commit 97bdbfc

Browse files
committed
Fix the usage of retrieved profile pics for fb users in matrix-puppet-facebook
1 parent 7f4ab61 commit 97bdbfc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/base.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,9 @@ class Base {
10871087
info('fetching avatar from', avatar);
10881088
let buffer, mimetype;
10891089
if(typeof avatar == "string") {
1090-
buffer = await download.getBufferAndType(avatar).buffer;
1091-
mimetype = await download.getBufferAndType(avatar).type;
1090+
let downloadedData = await download.getBufferAndType(avatar);
1091+
buffer = downloadedData.buffer;
1092+
mimetype = downloadedData.type;
10921093
} else {
10931094
buffer = avatar.buffer;
10941095
mimetype = avatar.type;

0 commit comments

Comments
 (0)