DEV: Adds new plugin API support to always show the topic map (#12642)

You can enable this by using the `includePostAttributes` API call with
the value of `topicMap`. This will always show the topic map at the top
of a topic regardless of how many posts there are.
This commit is contained in:
Robin Ward
2021-04-08 08:19:25 -04:00
committed by GitHub
parent 6081f8e5e9
commit 7e2b7bdd78

View File

@@ -172,6 +172,7 @@ export default function transformPost(
}
const showTopicMap =
_additionalAttributes.indexOf("topicMap") !== -1 ||
showPMMap ||
(post.post_number === 1 &&
topic.archetype === "regular" &&