タイトルと最新トピック取得APIに関する問題

こんにちは、

Discourse フォーラムを利用しており、アプリケーションにはカスタマイズされた UX を実装しています。Discourse との対話には、公開されている API を使用しています。この UX には「タイトルに続き本文」という概念がありません。入力されたコンテンツのみを投稿する必要があります。Discourse のスタイルに合わせて動作させるため、最初の数文字をタイトルとして、元のコンテンツを本文の raw として投稿すると、最新のトピックを取得したりトピック一覧を取得したりする際に、タイトルのみが表示され、実際のコンテンツである 1 番目の投稿は取得できません。この問題を解決するための方法やカスタマイズはありますか?

This is what is returned by the Discourse topic lists. I don’t think the lack of a proper title is what is causing the problem. To get actual post content from a topic list, you need to make two API requests. First make an API request to get the topic list. Then from the topics that are returned, you need to get the topic ids and make a request to /t/<topic_id>.json for each topic. Substitute the id of the topic you want for <topic_id>. This second request will return the first 20 posts in the topic.