Post reactions are being lost when moving the post

AI-generated summary

Post Reactions Loss When Moving Posts

A bug has been reported where post reactions are lost when moving a post. Richie initially reported the issue, providing screenshots of the post before and after the move. Lilly was able to reproduce the issue on her dev instance, noting that it only occurs when the post being moved is the topic post (OP).

The repro steps are:

  1. Go to a topic post with existing reactions.
  2. Click the admin wrench and select the post.
  3. Move to an existing topic.
  4. Existing reactions disappear (except for hearts).

Lilly provided additional screenshots to illustrate the issue. davidb confirmed the issue, noting that it seems to be specific to the first post in a topic. The issue has been fixed with commits in core and discourse-reactions.

Hi everyone,

We seem to have an issue with reactions getting lost when moving posts.

3.2.0.beta2-dev (83621ccbe7)

Before moving, the post had three reactions (one of which was a Like/Heart):

After the move, the reactions are lost and the post is left with just the one Like/Heart:

5 Likes

I can reproduce this as well on my dev instance, but only if the post being moved is a topic post (OP).

Repro:

1: Go to a topic post with existing reactions.
2: click the admin wrench and select the post
3: move to an existing topic
4: existing reactions disappear (except for hearts)

Screenshots:

Before

After

Discourse 3.2.0.beta2-dev, desktop mode, Chrome, Ubuntu 22.04

8 Likes

Thanks for sharing the details here.

I am noticing the same as Lilly described, it only seems to be happening with the first post in a topic.

This should be fixed with this commit in core and this one in discourse-reactions.

5 Likes

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