• webv4/root/api/forum.ssjs

    From echicken@VERT to Git commit to main/sbbs/master on Thu Jan 28 09:07:48 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/671856ab2f86b49d87ce66f6
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    get-[sub,group]-unread-counts to fetch unread message counts
    for every sub in a group or every group (that the user has
    access to).
    Avoids sending a long list of sub/group codes in the query string
    for no good reason, which is a problem if you like to carry an
    insane number of dead echoes or whatever.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Thu Jan 28 10:48:33 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/6e47fa469864d7cf50fbe7ff
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    Use Request.has_params instead of copious http_request.query[whatever] undefined checks.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Sun Feb 21 21:57:41 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/64d54d674fbb601488fb8301
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    get-newest-message-per-sub&group=x returns getNewestMessagePerSub(group)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Fri Feb 26 11:26:15 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/48296d045e6eab69fbf72cb8
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    Added get-thread call, support for generatorish reply value. list-threads doesn't need offset, instead will begin at the message after 'after' if given.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Sat Mar 6 21:31:33 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/5af6570133e3b7c88f3dbc34
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    Use require() and request; some WIP stuff for the new forum that will change later.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Fri Nov 24 06:51:25 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/03a90dba8a7ec4af7376c974
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    Pass 'answer' query value array instead of first element, submitPollAnswers expects an array. Fixes #283 presumably.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Nov 15 00:36:36 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/54066038b9055f4b7510c88f
    Modified Files:
    webv4/root/api/forum.ssjs
    Log Message:
    webv4: remove the unused get-thread-list forum API call

    The call has failed with a ReferenceError since it was added in
    3d556da85e (length-37-users, 2021-03-07): it calls getThreadList(), which exists only as a method of the forum object in lib/forum.js. Nothing in
    webv4 makes the call, and nothing uses that object.

    Correcting the reference would have been worse than the error. That
    function returns the sender, recipient, address and subject of every
    message in whatever sub it is given, with no can_read check, no
    anonymous masking and no spam filtering, so any logged-in user could
    have listed the headers of other users' private mail. It also reads
    every header in the sub on each request.

    An unknown call now gets the API's usual empty reply instead of a 500.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net