mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 06:11:55 +08:00

By default, the topic map in the OP shows only if there are replies. Some themes may want to show it at all times, and to do so, they can use the API via `api.includePostAttributes('topicMap');`. But this was including the topic map in every post. This change ensures that attribute is only set for the first post (and it only affects that API endpoint).