• exec/avatars.js

    From Rob Swindell to Git commit to main/sbbs/master on Thursday, December 31, 2020 14:13:47
    https://gitlab.synchro.net/main/sbbs/-/commit/a964807661be47b0143d474d
    Modified Files:
    exec/avatars.js
    Log Message:
    Don't publish realname when same as alias
  • From Rob Swindell to Git commit to main/sbbs/master on Monday, January 11, 2021 19:32:40
    https://gitlab.synchro.net/main/sbbs/-/commit/5f088ad2a5d0267cdf0ad3b3
    Modified Files:
    exec/avatars.js
    Log Message:
    By default, export MD5 digest of real name associated with an avatar

    This enables Avatar displays on real-name-only networks without leaking
    real names into the SYNCDATA sub.

    If the -realnames option is used, the unobscured full real names are
    exported (as before).

    If the (new) -aliasonly option is used, even the MD5 digest of users'
    real names is left out.
  • From Rob Swindell to Git commit to main/sbbs/master on Wednesday, February 23, 2022 13:01:08
    https://gitlab.synchro.net/main/sbbs/-/commit/9166b520ca68317216e2b5b9
    Modified Files:
    exec/avatars.js
    Log Message:
    Increase white-space tolerance when importing avatars from msgbase

    TARDIS (Quarkware BBS, the Ruby BBS), uses just \n for QWK message
    line deliniation, but we were expected \r\n terminated lines here.
    Also, apparently there was trailing white-space on the "json-end"
    line, so handle that case too.
  • From Rob Swindell to Git commit to main/sbbs/master on Wednesday, February 23, 2022 13:27:08
    https://gitlab.synchro.net/main/sbbs/-/commit/ad7a74744db3a9fd126f96aa
    Modified Files:
    exec/avatars.js
    Log Message:
    Remove accidental debug print() statement left from previous commit
  • From Rob Swindell (on Debian Linux)@rob@synchro.net to Git commit to main/sbbs/master on Tuesday, December 03, 2024 22:52:43
    https://gitlab.synchro.net/main/sbbs/-/commit/b29b8cfc0e7c9b039c0e52a9
    Modified Files:
    exec/avatars.js
    Log Message:
    .ini files need to be opened for read/write access when writing/updating

    This happened to work before commit d49134e6f7 since iniReadFile()
    didn't return false upon any read error, so File.iniSetAllObjects() didn't realize that the read of (any) existing file contents had failed (because the file was open write-only).

    This explains why the *.avatars.ini files were pretty much blank as of late
    and no networked message posters were having their avatars displayed.
    Reported by Codefenix (thank you).

    Add a print/log line to tell us how many avatars were parsed, just for extra traceability of this script and any potential failure cause.
  • From Rob Swindell (on Debian Linux)@rob@synchro.net to Git commit to main/sbbs/master on Thursday, January 16, 2025 00:29:47
    https://gitlab.synchro.net/main/sbbs/-/commit/cbae5ab7f7852703817d770f
    Modified Files:
    exec/avatars.js
    Log Message:
    Work-around avatars.js line 271: TypeError: hdr is null

    with a null hdr check before use (corrupt msg base?)