mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
df1fc5bca8
We currently query the posts table without an order when notifying users of moved posts. Generally the query will return the lowest post number post (b/c ID correlates with post_number in most cases) but not always. This adds an order to the post query in notify_moved_posts job. Also I removed some if statement nesting with early returns / guard clauses.