We are setting up a new Discourse forum and needed some help with the API.
One of the changes we are making is that we show the first post in a topic on the topic page (like Topic Preview). Since most posts will be visual, we show the image, the title, the replies and likes, etc of the topic to the user. Something like this:
We wanted the user to be able to like the first post in the topic by clicking on the heart icon from the main page. How can we get the first post id of a topic from the main page since we only have the topic id?
Also, once we get the post id, we need to send that and the post action type id as 2 to http://DiscourseURL/post_actions
Is that correct?