How does Discourse determine what Suggested Topics to show?

AI-generated summary

In this discussion, Nina_11 asks how Discourse determines which Suggested Topics to display and whether preferences can be set. simon explains that the Suggested Topics list prioritizes unread topics (watched or tracked) under 90 days old from the current category. If fewer than 5 such topics exist, it adds random topics under 365 days old from other categories. Users can customize this behavior via site settings: suggested topics (number shown, default 5), limit suggested to category (restrict to current category, default false), suggested topics unread max days old (default 90), and suggested topics max days old (default 365). JammyDodger provides a link to a detailed guide on the topic logic: Suggested Topic Logic.

Hello -

How does Discourse determine what Suggested Topics to show? Curious to know if I can set preferences for this feature.

The Suggested Topics list will show any unread topics that you are watching or tracking that are less than 90 days old. If there are fewer than 5 unread topics in the list, random topics that are less than 365 days old will be appended to the list. The Suggested Topics list first tries to load topics from the same category as the topic you are currently reading. If there are less than 5 topics from the category that can be added to the list, topics from other categories will be chosen.

You can control the behaviour of the Suggested Topics list with the following site settings:

  • suggested topics - the number of topics to show in the list (defaults to 5)
  • limit suggested to category - instead of prioritizing the current category, only show topics from the current category in the list (defaults to false)
  • suggested topics unread max days old - the maximum age in days to query for unread suggested topics for a user (defaults to 90 days)
  • suggested topics max days old - the maximum age in days to query for random suggested topics (defaults to 365 days)