Embedding topic posts - include first post

AI-generated summary

Users are discussing the embedding of topic posts in Discourse, specifically the absence of the first post in the embedded comments. Dan90 inquired about the possibility of including the first post, and simon explained that this isn’t possible by default, as the first post is assumed to be identical to the blog post. arivanandan then asked if there’s a way to change this behavior, and simon suggested using a plugin or the Discourse API. arivanandan successfully created a plugin to achieve this, which is now available on GitHub.

In the embedding example here the initial topic post doesn’t show up. Is it possible to have the first post show in embedded comments?

No, this isn’t possible. The assumption is that the first post in the topic will be identical to the blog post that you have added the embed code to. For this reason, the first post is not included in the embedded comments.

Is there some way to change this behavior? We’re embedding discourse for questions on a chapter and we attach several discourse topics to a page.

There isn’t a setting that can be used to change the behaviour. It is possible that it could be achieved with a plugin. The only other option I can think of would be to use the Discourse API to pull the topics and responses to your website.

Wrote a plugin. Got my bearings after reading this.

Might not be the best way to do this but here it is.