# Exclude / Suppress (Automatically) Closed Topics from the Homepage?

**URL:** https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896
**Category:** Feature
**Created:** [February 20, 2016, 3:30pm UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896 "2016-02-20T15:30:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mr8](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@mr8](https://meta.discourse.org/u/mr8)
#### Post date: [February 20, 2016, 3:30pm UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/1 "2016-02-20T15:30:09Z")

</div>

We have a couple of topics that we create through the API that automatically get closed after a week due to the time sensitivity of the content. Although this works great for us, we’ve noticed that those closed topics still sort of clutter our homepage (which is set to **Latest** ) when scrolling down a couple of pages.

I supposed we could have another script move those topics via the API to an archival category that is suppressed from the homepage, but it would be great if there were an admin setting to suppress or exclude automatically closed topics (or even just regular closed topics) from the Homepage.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [February 20, 2016, 11:38pm UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/2 "2016-02-20T23:38:02Z")

</div>

From the Admin wrench within a topic you can “Make Unlisted”.

 ![](https://global.discourse-cdn.com/meta/original/3X/2/a/2aff56c8cceed1f462362a5b316a52d8da4b4198.png)

That could be done via the API too, without breaking categorization.

You might consider having that happen 24+ hours _after_ the topic is closed, so there is some transparency about the fact that a topic was closed before it becomes invisible.

Perhaps a category setting to “unlist closed topics after N hours” would be a worth considering…

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [February 21, 2016, 2:08am UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/3 "2016-02-21T02:08:36Z")

</div>

You could also consider whether or not this is really a problem - being able to easily search for & view those topics may be valuable as an archive later.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [February 21, 2016, 2:22am UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/4 "2016-02-21T02:22:44Z")

</div>

Does unlisting make it not show up in search? I hadn’t considered that…

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [February 21, 2016, 12:00pm UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/5 "2016-02-21T12:00:12Z")

</div>

For normal members, yes, and unlisted is no longer indexed by Google.

---

<div class="post-metadata">

### Author: ![balthatrix](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@balthatrix](https://meta.discourse.org/u/balthatrix)
#### Post date: [March 31, 2016, 9:47pm UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/6 "2016-03-31T21:47:45Z")

</div>

Hey there,

I’m trying to figure out how to do this with an api call. Can you provide an example? Preferably, one using the discourse gem if possible. I’ve tried a number of things that don’t seem to work… Thanks!

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [April 3, 2016, 4:30am UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/7 "2016-04-03T04:30:23Z")

</div>

Please see this topic:

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

---

<div class="post-metadata">

### Author: ![balthatrix](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@balthatrix](https://meta.discourse.org/u/balthatrix)
#### Post date: [April 5, 2016, 11:38pm UTC](https://meta.discourse.org/t/exclude-suppress-automatically-closed-topics-from-the-homepage/39896/8 "2016-04-05T23:38:28Z")

</div>

Thanks, I like it! Specific question → General encompassing answer
