• webv4/root/api/forum.ssjs

    From echicken@1:103/705 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 countsfor every sub in a group or every group (that the user hasaccess to).Avoids sending a long list of sub/group codes in the query stringfor no good reason, which is a problem if you like to carry aninsane number of dead echoes or whatever.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 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)
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 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.
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 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.
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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>
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)