From f9db2d2514ad6ebfe25b06d905da49c0e0ccca8a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 12 Jan 2018 22:20:25 +0000 Subject: [PATCH] User avatars are now be displayed next to the details of files they've uploaded. This feature requires an updated v3.17 build. --- exec/showfileavatar.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 exec/showfileavatar.js diff --git a/exec/showfileavatar.js b/exec/showfileavatar.js new file mode 100644 index 0000000000..d083218b44 --- /dev/null +++ b/exec/showfileavatar.js @@ -0,0 +1,11 @@ +// $Id$ + +const FM_ANON =(1<<1); +const USER_ANSI =(1<<1); + +// Avatar support here: +if(!(bbs.file_attr&FM_ANON) && console.term_supports(USER_ANSI)) { + var Avatar = load({}, 'avatar_lib.js'); + Avatar.draw(system.matchuser(bbs.file_uploader), null, null, /* above: */true, /* right-justified: */true); + console.attributes = 0; // Clear the background attribute as the next line might scroll, filling with BG attribute +} \ No newline at end of file -- GitLab