@simon That’s exactly what we want! Thanks for your reply. The problem is that our site is not built with WordPress. But we can take a look at the Discourse API.
Speaking of feature requests, where can I raise this request for Discourse?
@simon That’s exactly what we want! Thanks for your reply. The problem is that our site is not built with WordPress. But we can take a look at the Discourse API.
Speaking of feature requests, where can I raise this request for Discourse?
@Canapin So we want the blog post to receive a comment first BEFORE it is listed as a Discourse topic. The post does exist on our site in the first place, doesn’t it?
That’s a good idea. The other option is to not create the topics until the user clicks through but I think your suggestion might be easier. Perhaps @eviltrout could consider this as a possible task for this release, next week?
And how can I set the Unlisted by api,I can’t find the relative apis in my comment embedding.js. Thank you.
The easiest way to figure this out would be to try unlisting and then listing a topic through the Discourse user interface while following the steps outlined in this guide: How to reverse engineer the Discourse API.
To automate the process via the API, you would need to setup a webhook to listen for post events. When you receive a webhook telling you that the first post in your embed category has been created, you would then send an API request to unlist the topic. When you receive a webhook telling you that the second post in a topic has been created, you would then send an API request to list the topic.
As was mentioned above, a better approach might be to have the topic automatically unlisted the first time a user clicks through to the topic from a blog site. That way the first user to leave a comment would not see the topic marked as unlisted. That would be somewhat more complex to setup, but it could be done through the API by listening for click events on links to your Discourse topics.
Yeah I think we should do this @eviltrout. At least the easier (default unlisted, once a reply arrives it is listed?) form maybe?
Ok, thanks for your help.
Looking forward to this new feature. Sound like a much-needed one. So how can I keep myself informed when it’s available?
Ideally, this topic will get updated when the feature becomes available. In that case, you will get a notification about it if you set your notification level for this topic to Watching.
Good to know! Thanks!
Wow that’s really impressive! So fast.
I just saw this feature live! Shout out to @codinghorror and @eviltrout. Thanks for being so responsive to users’ request.
Yes apologies I meant to update this topic to announce it’s now live. Can you try it out and provide feedback?
We’d like to make this the default in the future but we want to make sure it’s been tested properly.
No worries.
Totally.
I have enabled this option and the new blog post has been unlisted automatically.
But the old ones are still there and I need to manually delete them.
Is that the right logic according to your design?
Yes, I should have been more clear that this only applies to new imports going forward.
@eviltrout I went through the process below and found a bug:
To be clear is this only happening on old topics that you deleted all the posts? Or newly created ones too?