# Like Notifications are clearing without viewing the Post

**URL:** https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423
**Category:** Bug
**Created:** [2016年二月11日 20:09 UTC](https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423 "2016-02-11T20:09:18Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2016年二月14日 14:43 UTC](https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423/21 "2016-02-14T14:43:12Z")

</div>

> [@sam](#):
>
> This is by design but I am going to improve it some. It is tedious forcing people to visit every like notification.

I noticed it and I liked the feature!  
I first had thought it was a bug, but then I loved it 🙂

---

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2016年二月14日 14:53 UTC](https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423/22 "2016-02-14T14:53:25Z")

</div>

> [@codinghorror](#):
>
> I tend to agree with Sam here it is nice to be notified of a like for sure but people should not be forced to visit the like to clear the notification.

That’s exactly the case with me. I was tired of clicking on `likes` just to remove the highlighting…

## Possible improvements

**A.** Do not highlight `like` notifications at all, but still show them in the queue in the menu as it is done now. So that there is no auto-de-highlighting that might confuse.

or

**B.** “collapse” all likes in the menu and show a single item:

“14 likes received”

… it could be shown at the very top of the list, just as it is currently done for PMs. As soon as it is shown once, it disappears from the menu next time you open it, same as for PMs. When the collapsed menu item is clicked, it can either:

**a)** open the “likes received” section in my notifications tab `/users/<username>/notifications/likes-received`

or

**b)** expand right in the menu and show all likes received (not highlighted, but clickable just as any other notifications)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年二月15日 08:43 UTC](https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423/23 "2016-02-15T08:43:34Z")

</div>

I amended the logic so my biggest peeve is no longer the case, every notification now gets cleared on click and the internals are far more robust.

[https://github.com/discourse/discourse/commit/dd6ebde8247d849c1d429d5807c545f09091128d](https://github.com/discourse/discourse/commit/dd6ebde8247d849c1d429d5807c545f09091128d)

I was looking at adding another user option for “notify on every like” which is essentially what Twitter do, however will not be adding any more options till I split out the user\_options from the user table, which is a pretty challenging code maneuver.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年二月15日 08:43 UTC](https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423/24 "2016-02-15T08:43:38Z")

</div>



[上一頁](https://meta.discourse.org/t/like-notifications-are-clearing-without-viewing-the-post/39423.md?page=1)
