# 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 juli 2015 om 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:** 1\
**Showing post:** 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 juli 2015 om 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)

---

_[View the full topic](https://meta.discourse.org/t/when-liking-a-post-expanded-likes-vanishes/30945)._
