• new_file_time, bbs.last_new_file_time

    From Nightfox@VERT/DIGDIST to Digital Man on Fri Feb 11 02:01:13 2022
    Hi DM,

    While looking at the JS docs, I'm curious, what are the differences between user.new_file_time, bbs.new_file_time, and bbs.last_new_file_time? When should those be used (and updated)?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Fri Feb 11 04:24:58 2022
    Re: new_file_time, bbs.last_new_file_time
    By: Nightfox to Digital Man on Fri Feb 11 2022 10:01 am

    Hi DM,

    While looking at the JS docs, I'm curious, what are the differences between user.new_file_time, bbs.new_file_time, and bbs.last_new_file_time? When should those be used (and updated)?

    Upon logon to the terminal server, bbs.new_file_time and bbs.last_new_file_time are set to the current user.new_file_time value.

    A new file scan displays files uploaded (added/imported) since the current bbs.new_file_time value. The bbs.new_file_time value can be manipulated by the user, e.g. they want to review files that have been uploaded over the past month or whatever.

    When the user executes a new file scan, bbs.last_new_file_time is updated to the current time (this happens automatically when using the built-in file listing logic). The bbs.last_new_file_time isn't actually used for anything until the user logs-off and its value is then copied to the user.new_file_time to be used for the next logon (this copy/sync of the last_new_file_time -> user.new_file_time is built-in to the BBS's logout logci and nothing a script would need to do).

    This scheme insures that a user will never "miss" the display of new files on the BBS and that they would not normally see the same/repeat "new" files between successive sessions.
    --
    digital man (rob)

    Rush quote #60:
    Plays fast forward just long as he can, he won't need a bed, he's a digital man Norco, CA WX: 83.6øF, 18.0% humidity, 5 mph WSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net