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
    11 Posts
    1k Views

    @juan-g Yeah you can declare now above the code with var now = Date.now()

  • 0 Votes
    2 Posts
    981 Views

    @_axe Hey there, in what situation do you have guest posts that have user data?

    Can you do a .getObject on one of the posts so we can see what imported data remains?

    Obligatory ping to @bentael

  • 0 Votes
    3 Posts
    3k Views

    For some reason I do not even need the anti spam plugins (yep I got all of them disabled).

    However, I would simply disable Askimet and enable the other spam filters instead.

  • plug-in in post window

    Technical Support
    0 Votes
    2 Posts
    1k Views

    @LLLRH

    Canned Responses Emoji Extended Imgur

    😄