How schedule a topic in the future?


  • GNU/Linux

    I need to schedule a topic in the future, suppose to have a future timestamp, so to schedule a topic I do this:

    topics.setTopicField(tid, ['timestamp'], timestamp, next);
    

    But it doesn't work. is there a method that I can use to not show the topic until the timeout is reached?Anyone can help me?


  • Community Rep

    I don't think there's anything in core. But you could probably use the filter:topics.get hook and remove topics with a timestamp greater than now.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.