# Multiple users liking a single post notification

**URL:** https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026
**Category:** Development
**Created:** [April 23, 2020, 4:52pm UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026 "2020-04-23T16:52:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![esmon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/esmon/32/178000_2.png) [@esmon](https://meta.discourse.org/u/esmon)
#### Post date: [April 23, 2020, 4:52pm UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026/1 "2020-04-23T16:52:45Z")

</div>

Did some poking around in the code for notifications and noticed that this condition is never met in `widgets<U+2069>/notification-item.js.es6`. Running 2.3.8.

 ![Screen Shot 2020-04-22 at 7.40.54 PM](https://global.discourse-cdn.com/meta/original/3X/2/1/21773ace82a26ac84b205d66cfb829b8ccef9bf2.png)

Doing a `console.log` of `data` object shows that `data.count` is usually `undefined` unless it’s a consolidated notification that one user likes more than one of your posts. Also `username2` is not defined in the `data` object.

Is this notification type being phased out?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 11, 2020, 3:40am UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026/2 "2020-05-11T03:40:13Z")

</div>

Is this dead code @eviltrout?

---

<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: [May 11, 2020, 4:55am UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026/3 "2020-05-11T04:55:38Z")

</div>

I think this stuff happens if you have notify on every like enabled. (I use this on meta)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [May 11, 2020, 3:23pm UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026/4 "2020-05-11T15:23:24Z")

</div>

We are definitely sending out `username2` in some circumstances:

> <https://github.com/discourse/discourse/blob/main/app/services/post_action_notifier.rb#L31>

---

<div class="post-metadata">

### Author: ![esmon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/esmon/32/178000_2.png) [@esmon](https://meta.discourse.org/u/esmon)
#### Post date: [May 11, 2020, 4:45pm UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026/5 "2020-05-11T16:45:46Z")

</div>

Thanks for responding @codinghorror @eviltrout. I realized this seems to have been refactored and is different in 2.4.2 now.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 11, 2020, 5:55pm UTC](https://meta.discourse.org/t/multiple-users-liking-a-single-post-notification/149026/6 "2020-05-11T17:55:01Z")

</div>

Moving this to #Development discussion.
