# Unexpected flags showing up... False flags!

**URL:** https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857
**Category:** Bug
**Created:** [September 18, 2019, 2:16am UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857 "2019-09-18T02:16:54Z")
**Posts on this page:** 16
**Page:** 2

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [September 18, 2019, 1:38pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/28 "2019-09-18T13:38:44Z")

</div>

Love hearing that. We’re on the edge of our seat.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 18, 2019, 3:13pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/29 "2019-09-18T15:13:15Z")

</div>

Tests have passed, fix rolled out to all affected sites. Sorry about this!

---

<div class="post-metadata">

### Author: ![Seth\_Godin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seth_godin/32/119667_2.png) [@Seth\_Godin](https://meta.discourse.org/u/Seth_Godin)
#### Post date: [September 18, 2019, 3:20pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/30 "2019-09-18T15:20:05Z")

</div>

thanks @jomaxro

to clarify, the original problem is solved, and hearts are no longer flags? We can turn them back on?

thanks for your help

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 18, 2019, 3:21pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/31 "2019-09-18T15:21:08Z")

</div>

That is correct. A change deployed yesterday updated the way we determine when to hide flagged posts, and in doing so introduced this bug where likes could cause posts to be hidden. That bug has been fixed.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [September 18, 2019, 3:21pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/32 "2019-09-18T15:21:46Z")

</div>

Seth, I tested on your site and already enabled the Like button again and disabled the global warning.

---

<div class="post-metadata">

### Author: ![Seth\_Godin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seth_godin/32/119667_2.png) [@Seth\_Godin](https://meta.discourse.org/u/Seth_Godin)
#### Post date: [September 18, 2019, 3:22pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/33 "2019-09-18T15:22:29Z")

</div>

thanks @dax

if it was always that easy to get rid of global warming, I’d be a lot more optimistic about the future.

perhaps you and the team could work on that next.

🌥

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [September 18, 2019, 3:28pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/34 "2019-09-18T15:28:23Z")

</div>

What’s the best way for to scan the sites for posts that were hidden by this bug and unhide them?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [September 18, 2019, 3:28pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/35 "2019-09-18T15:28:58Z")

</div>

With @codinghorror , who knows… we could even do it 💪 🦸‍♂️ 🦸‍♀️

😃

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 18, 2019, 3:35pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/36 "2019-09-18T15:35:01Z")

</div>

This [data explorer](https://meta.discourse.org/t/32566?silent=true) query should reveal all hidden (but not deleted) posts:

```plaintext
SELECT id, user_id, topic_id, post_number
FROM posts p
WHERE p.hidden = true AND p.deleted_at IS NULL

```

From there you can unhide the posts found.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [September 18, 2019, 3:45pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/37 "2019-09-18T15:45:50Z")

</div>

> [@jomaxro](#):
>
> SELECT id, user\_id, topic\_id, post\_number FROM posts p WHERE p.hidden = true AND p.deleted\_at IS NULL

Thanks. I just set that up and we’ve got 400 posts to clean up. Is there a way for you to do it programmatically?

Perhaps you can unhide all in one fell swoop?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 18, 2019, 3:46pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/38 "2019-09-18T15:46:23Z")

</div>

Certainly. You want us to unhide all hidden posts on the 3 sites listed above?

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [September 18, 2019, 3:49pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/39 "2019-09-18T15:49:55Z")

</div>

Yes please.

… and now extra chars to hit min post

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [September 18, 2019, 4:14pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/40 "2019-09-18T16:14:50Z")

</div>

Let us know when the posts are un-hidden, and we’ll be able to wrap this up.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 18, 2019, 5:04pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/41 "2019-09-18T17:04:23Z")

</div>

You’re all set. All posts unhidden.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [September 18, 2019, 5:18pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/42 "2019-09-18T17:18:25Z")

</div>

Thank you so much for untangling this bug and helping us clean up after.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 21, 2019, 10:00pm UTC](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857/48 "2019-09-21T22:00:10Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.

[Previous page](https://meta.discourse.org/t/unexpected-flags-showing-up-false-flags/128857.md?page=1)
