# How to get all latest/top messages in non-private categories?

**URL:** <https://meta.discourse.org/t/how-to-get-all-latest-top-messages-in-non-private-categories/149457>\
**Category:** Development\
**Created:** [27 april 2020 om 13:39 UTC](https://meta.discourse.org/t/how-to-get-all-latest-top-messages-in-non-private-categories/149457 "2020-04-27T13:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)\
**Post date:** [27 april 2020 om 14:28 UTC](https://meta.discourse.org/t/how-to-get-all-latest-top-messages-in-non-private-categories/149457/6 "2020-04-27T14:28:06Z")

</div>

Hmm, that’s not bad. It’s still a bit hacky, but I think it’s slightly less hacky than what I’m doing now. Keeping a “phantom basic user” around means, at least, I don’t have to manually maintain a list of Discourse category IDs in my main site’s code.

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-all-latest-top-messages-in-non-private-categories/149457)._
