# When liking a post, expanded likes vanishes

**URL:** https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945
**Category:** Bug
**Created:** [10 Julho , 2015 05:17 UTC](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945 "2015-07-10T05:17:18Z")
**Posts on this page:** 5
**Page:** 1

<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: [10 Julho , 2015 05:17 UTC](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945/1 "2015-07-10T05:17:18Z")

</div>

Repro:

- Expand likes on a post
- Like the post
- Panel with likers disappears

Expected:

User is appended to post.

* * *

More severe side effect, if **anyone** likes a post while you have likes expanded, the expansion will vanish making you think UI is broke.

* * *

What needs fixing?

We already subscribe to the “acted” message so we know when post actions happen. postStream only has the very coarse “triggerChangedPost” which does a huge amount of reconciliation.

So we either need:

- To expand triggerChangedPost to reconcile expanded likes. This is messy cause 1 message from message bus, 1 XHR to get post, 1 extra XHR to get users.

or

- Introduce a triggerActedPost to reconcile post actions, 1 XHR to get actions, 1 XHR to get users

or

- Introduce a payload to the message sent and split out acted / removed\_act messages, that way you can render the user right away when you get the message and don’t need an extra XHR (very tricky due to security, probably not doable)

Since @eviltrout is planning on working on this (probably next week, leaving it to him)

---

<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: [10 Julho , 2015 05:23 UTC](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945/2 "2015-07-10T05:23:25Z")

</div>

This seems like a lot of work for a rather rare, niche situation.

---

<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: [10 Julho , 2015 05:29 UTC](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945/3 "2015-07-10T05:29:25Z")

</div>

A simple fix is probably not too much work, @eviltrout is planning on paying off some technical debt around post actions so I want to make sure this is paid off while at it.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [11 Agosto , 2020 02:54 UTC](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945/4 "2020-08-11T02:54:49Z")

</div>

> [@sam](#):
>
> Resultado esperado:
> 
> O usuário é anexado à postagem.

Isso funciona conforme o esperado e provavelmente já ocorre há algum tempo.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [11 Agosto , 2020 02:54 UTC](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945/5 "2020-08-11T02:54:51Z")

</div>


