Updating timestamp on a static Topic post

Unsolved Technical Support
  • We're using a pinned topic as a mechanism to display the 20 most recent changes to our application. I realize we could add new posts with the latest change, but I would rather not have a scrolling list of posts. Is there any way to update the timestamp of the first post/topic such that it shows up as "new/unread"? Preferably through the write API but failing that a DB update would be fine as well.

  • after you open this pinned topic, you can go to "topic tools" and then click "mark as unread" ... this makes the post unread for all users...

    additionally, if you want to specifically emphasize a change you can edit the first post without changing the original post itself but add the update separately...

    I mean something like this:

    original topic post

    • 1
    • 2
    • 3
    • ...

    update on Dec 27 , 2022: list is updated:

    • 10
    • 20
    • 30
    • ...
  • @crazycells of course you can also add the "updated post" to the top of the post as well, and keep the original/ old post below ...


Suggested Topics


  • 0 Votes
    3 Posts
    389 Views
    const topicId = 5; const keys = db.objects.find({ _key: "tid:" + topicId + ":posts" }).map(i => 'post:' + i.value); printjson(db.objects.find({ _key: { $in: keys } }).toArray());

    You can save this in a file called query.js and then execute it with mongo localhost:27017/mydb query.js

    It will output something like

    [ { "_id" : ObjectId("5547ae6a65190fe21225ec2b"), "_key" : "post:124", "pid" : 124, "uid" : 47, "tid" : 5, "content" : "I like it too :)", "timestamp" : 1376791225638, "bookmarks" : 2 }, { "_id" : ObjectId("5547aee765190fe212296f10"), "_key" : "post:18", "pid" : 18, "uid" : 2, "tid" : 5, "content" : "Thank you :)", "timestamp" : 1373686442781 } ]
  • 0 Votes
    1 Posts
    195 Views

    Re: Is there a way to bulk purge deleted posts?

    Same old topic, hoping there is a way now?

  • Watching updates

    Technical Support
    0 Votes
    12 Posts
    634 Views

    @ehurt it shouldn't make a difference

  • 0 Votes
    7 Posts
    1k Views

    You should always have a backup before updating anything in my opinion. Better to be safe. I dont see any problems to update from 0.7.1 to 1.7.5.

    Download new source Copy over the config and static content (if you have any) run ./nodebb upgrade

    Simple as pie, but remember. Always backup first 😛

  • 0 Votes
    4 Posts
    1k Views

    There is a lot of settings 😉 I am using this my self. My settings is about 1 week