Moving multiple posts resets timestamp only on first post

Summary:

When selecting and moving multiple posts to another thread, the first post moved has its timestamp reset to the time of the move, while the remaining posts retain the original timestamp.

Steps to reproduce:

  1. Select more than one post in a thread.
  2. Move posts to another thread.

Expected Results:

All posts retain original time stamp.

Actual Results:

Original post timestamp changes to time of move. Results in strange timestamps in thread (potential for a post later in thread to have an earlier time than a post before it).

Notes:

Noticed this when moving all posts in a topic to another one. Did not pay attention to whether this happens with moving only one post, or moving multiple posts without selecting the OP. Will update if I have an opportunity to check this.

Attachments:

N/A

Versions and Mods:

Discourse 1.5.0.beta7 (discourse.stonehearth.net)

System Information:

Windows 10 Pro, Chrome Stable 47

4 Likes

https://github.com/discourse/discourse/commit/8ab6689f43fdf57ab303fc1ffa3f1bdd7d6dc46e

6 Likes