Filtering embedded comments in a website


I need to know if there is a way i can “filter” somehow the comments i am showing from my Discourse instance on the company website i work for.

The thing is that we need to show certain comments from certain topics in certain webpages we have…Something like:

show comment 5 from topic A,
show comment 34 from topic A,
show comment 23 from topic B and
show comment 10 from topic C

…all of this in the same block (or widget) in a given webpage in our corporate website.

I know how to embed comments using javascript from Discourse on a given website but can’t find anything regarding filtering.

Thanks in advance!

1 Like

I think you’re going to need to build a script of your own that calls the Discourse API and processes the results. A trivial task for a Discourse developer, or easy for any javascript developer.